I have a radtabstrip that I use as a wizard.
Each tab is a usercontrol. The user can navigate between the tabs using the prev and next buttons on the page or by clicking on the tabs.
I have a customvalidator on each of my tabs. They seem to work fine on the prev/next buttons. However when i use the tabs to navigate the validation does not work right the first time.
I am setting my validationgroup for the tabstrip as below:
It seems the validationgroup is not being set right when i use the prev/next buttons on each tab.
Can you suggest what I am doing wrong?
Each tab is a usercontrol. The user can navigate between the tabs using the prev and next buttons on the page or by clicking on the tabs.
I have a customvalidator on each of my tabs. They seem to work fine on the prev/next buttons. However when i use the tabs to navigate the validation does not work right the first time.
I am setting my validationgroup for the tabstrip as below:
<telerik:RadTabStrip ID="rtsBeneficiaryChange" SelectedIndex="0" runat="server" MultiPageID="rmBeneficiaryChange" OnTabClick="rtsBeneficiaryChange_TabClick" EnableEmbeddedSkins="false" Skin="MBen" OnClientTabSelected="UpdateValidationGroup" CausesValidation="true" AutoPostBack="true"> </telerik:RadTabStrip>script:function UpdateValidationGroup(sender, args) { // args.set_cancel(!Page_IsValid); var tabStrip = sender; var selectedTab = tabStrip.get_selectedTab(); if (selectedTab != null) tabStrip.ValidationGroup = selectedTab.get_value(); alert(tabStrip.ValidationGroup); } protected void rtsBeneficiaryChange_TabClick(object sender, RadTabStripEventArgs e) { Page.Validate(rtsBeneficiaryChange.ValidationGroup); if (Page.IsValid) rtsBeneficiaryChange.ValidationGroup = e.Tab.Value; }It seems the validationgroup is not being set right when i use the prev/next buttons on each tab.
Can you suggest what I am doing wrong?
