<
telerik:RadToolTip runat="server" ID="RadToolTip10"
Position="Center"
RelativeTo="Element"
ManualClose="true"
OnClientBeforeShow="CheckIfShow"
TargetControlId="btnSubmit" Skin="Web20"
Title="You have following Errors" Modal="true" MouseTrailing="true">
<table cellpadding="0" cellspacing="0" width="300"><tr><td></td><td>
<asp:ValidationSummary id="ValidationSummary1" runat="server"/></td></tr>
<tr><td></td><td align="right"><asp:Button ID="btnClose" runat="server" Text="Close" OnClientClick="HideTooltip()" />
</td></tr></table>
</telerik:RadToolTip>
<
asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="ShowTooltip();" OnClick="btnSubmit_Click" />
Java Script:function
ShowTooltip()
{
window.setTimeout(
function()
{
var tooltip = $find("<%=RadToolTip10.ClientID %>");
//API: show the tooltip
tooltip.show();
}, 10);
}
function CheckIfShow(sender, args)
{
var summaryElem = document.getElementById("<%=ValidationSummary1.ClientID %>");
//check if summary is visible
if (summaryElem.style.display == "none")
{
//API: if there are no errors, do not show the tooltip
args.set_cancel(
true);
}
}
function HideTooltip()
{
var tooltip = $find("<%=RadToolTip10.ClientID %>");
//API: hide the tooltip
tooltip.hide();
}
Regards| Dim newdock As RadDock = CreateRadDock("Personal Info") |
| newdock.Tag = "~/UserControls/EditContact/PersonalInfo.ascx" |
| LoadWidget(newdock) |
| Me.rdzEditContact.Controls.Add(newdock) |
| newdock = CreateRadDock("Custom Fields") |
| newdock.Tag = "~/UserControls/EditContact/CustomFields.ascx" |
| LoadWidget(newdock) |
| Me.rdzEditContact.Controls.Add(newdock) |
I am dynamicly creating foo columns to be added to the grid
I do it like this in Page_Load:
foreach (Artikli artikal in a)
{
GridNumericColumn gridColumn = new GridNumericColumn();
this.RadGrid1.MasterTableView.Columns.Add(gridColumn);
gridColumn.DataField = "blank";
gridColumn.HeaderText = artikal.Naziv;
gridColumn.UniqueName = artikal.Id.ToString() + "_blank";
// gridColumn.Expression = " ";
}
Export in Excel (ML) will export existing columns and only first added column.
Excel html export exports all columns, but xls file looks better in excel.
If I try to create GridCalculatedColumn instead of GridBoudCollumn, I rececive this error:
GridException: Cannot create column with the specified type name: GridCalculatedColumn]
Telerik.Web.UI.GridColumnCollection.CreateColumnFromTypeName(String columnTypeName) +1013
...
Any help?
Week numbers
Is there any build-in soltuion for adding week numbers as part of the month view
Start week
Is it possible to start the month view with with the current week at top
<
telerik:GridDropDownColumn HeaderText="Client" UniqueName="Budget_Client" DataSourceID="SrcForClient" DataField="Budget_Client" ListTextField="ClientName" ListValueField="ClientName"></telerik:GridDropDownColumn>
On the above code, I am binding a dropdown list to a object datasource. The problem is if DataField does not match item in the field, it display blank in the grid column. Ideally I would to have user see the original value (Data Field) before going to edit mode for selecting item in the dropdown list...
Any suggestion would be appreciated.
Thanks.
Milan G