or
function UpdateValidationGroup()
{
var tabStrip = <%=RadTabStrip1.ClientID%>;
tabStrip.ValidationGroup = tabStrip.SelectedTab.Value;
}
</script>
Currently our company is in the process of buying asp.net ajax 2009 Q1 controls and it seems that the script does not apply anymore.
Can you please help?
We have a tabstrip with four tabs. Each one with it's corresponding pageview with a set of controls. We would like to make each tab validate separately (for which we assigned a different validation group, and even a differente validation summary)
We set Radtabstrip has causesValidation=true
What are we missing here?
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
public partial class HierarchyMaintenance : System.Web.UI.Page{ protected void ListBox_Transferred(object sender, RadListBoxTransferredEventArgs e) { e.DestinationListBox.Items.Sort(new ListBoxValueComparer()); } public class ListBoxValueComparer : System.Collections.IComparer { int System.Collections.IComparer.Compare(Object x, Object y) { string xValue = (x as RadListBoxItem).Value; string yValue = (y as RadListBoxItem).Value; return Comparer.DefaultInvariant.Compare(xValue, yValue); } }}e.DestinationListBox.Items =
e.DestinationListBox.Items.OrderBy(i=>i.Attributes["MyAttribute"]);private static void DisablePageControls(Control myControl, Boolean setEdit){ foreach (Control cntrl in myControl.Controls) { switch (cntrl.GetType().ToString()) { case "System.Web.UI.WebControls.TextBox": ((TextBox)cntrl).Enabled = setEdit; break; case "Telerik.Web.UI.RadTreeView": ((RadTreeView)cntrl).Enabled = setEdit; break; case "Telerik.Web.UI.RadMaskedTextBox": ((RadMaskedTextBox)cntrl).Enabled = setEdit; break; case "Telerik.Web.UI.RadToolTip": ((RadToolTip)cntrl).Enabled = setEdit; break; case "Telerik.Web.UI.RadDatePicker": ((RadDatePicker)cntrl).Enabled = setEdit; break; case "System.Web.UI.WebControls.DropDownList": ((DropDownList)cntrl).Enabled = setEdit; break; case "System.Web.UI.WebControls.CheckBox": ((CheckBox)cntrl).Enabled = setEdit; break; case "System.Web.UI.WebControls.LinkButton": ((LinkButton)cntrl).Enabled = setEdit; break; case "System.Web.UI.WebControls.CheckBoxList": ((CheckBoxList)cntrl).Enabled = setEdit; break; case "Telerik.Web.UI.RadComboBox": ((RadComboBox)cntrl).Enabled = setEdit; break; case "Telerik.Web.UI.RadListBox": ((RadListBox)cntrl).Enabled = setEdit; break; default: break; } //Call for additional controls: if (cntrl.HasControls()) DisablePageControls(cntrl, setEdit); }}<telerik:GridTemplateColumn ItemStyle-Width="80px"> <ItemTemplate> <asp:RadioButtonList ID="HASelection" runat="server" RepeatColumns="1" RepeatDirection="Vertical"> </asp:RadioButtonList> </ItemTemplate> </telerik:GridTemplateColumn>
