or
I have RadTabStrip on my page. The problem I try to solve is not allow to pass to other tab if validation is failed.
For that I have next controls:
1. Validation controls connected to the specific control such as:
It is just example. As you see this control validation control is part of the some group
<asp:TextBox ID="txtEmployeeNo" CssClass="readOnlyTextbox" runat="server" Enabled="false" /> <asp:ImageButton ID="imbChangeEmployeeNo" runat="server" ImageUrl="./../Images/Search.gif" CommandName="ChangeEmployee" ToolTip="Change Employee" /> <asp:RequiredFieldValidator ID="reqlblEmployeeNoEdit" runat="server" ErrorMessage="Employee No is required." Display="None" ControlToValidate="txtEmployeeNo" ValidationGroup="valGrpGeneral" Enabled="false"></asp:RequiredFieldValidator> <asp:ValidationSummary ID="valSumGeneral" runat="server" DisplayMode="BulletList" HeaderText="The following inputs are invalid:" ValidationGroup="valGrpGeneral" ShowMessageBox="true" ShowSummary="false" /> function OnClientTabSelecting(sender, eventArgs) { var newTab = eventArgs.get_tab(); if (newTab != null) { var oldTab = newTab.get_parent().get_selectedTab(); if (oldTab != null) { switch (oldTab.get_value()) { case "<%= GeneralTabValue %>": eventArgs.set_cancel(!Page_ClientValidate("<%=GeneralTabSummaryValidationName %>")); break; } } } function ShowModalWindow(ctrl1ID, ctrl2ID, ctrl3ID, url) { var ret = window.showModalDialog(url, this, 'dialogWidth=975px;dialogHeight=670px;resizable=yes;help=no;'); var ctrl1 = document.getElementById(ctrl1ID); // 'R' = HR Reason Code, 'E' = Employee ID, 'P' = Position var ctrl2 = document.getElementById(ctrl2ID); // The returned value var ctrl3 = document.getElementById(ctrl3ID); // Whether or not to open the control in edit mode. if (ret != null && ctrl1 != null && ctrl2 != null && ctrl3 != null) { if (ret.length > 1) { ctrl1.value = ret[0]; ctrl2.value = ret[1]; ctrl3.value = ret[2]; } } } If e.RowType = GridExcelBuilder.GridExportExcelMLRowType.HeaderRow Then Dim r As New GridExcelBuilder.RowElement For Each cell As GridExcelBuilder.CellElement In e.Row.Cells Dim c As New GridExcelBuilder.CellElement c.Data.DataItem = "test" r.Cells.Add(c) Next 'e.Worksheet.Table.Rows.Add(r) 'e.Worksheet.Table.Rows.Insert(1, r)End If6F9619FF-8B86-D011-B42D-00C04FC964FF.pdf)protected
void gridSalaryInfo_GridExporting(object source, Telerik.Web.UI.GridExportingArgs e)
{
string customHTML = "<table><tr><td><asp:Image ID='Image1' runat='server' ImageUrl='~/images/KIB_LOGO.png' AlternateText='KIB' Width='100%' /></td></tr></table>";
e.ExportOutput = e.ExportOutput.Replace(
"<body>", String.Format("<body>{0}", customHTML));
}