We used to be able to use the following script to change the validation group each time a user clicks another tab:
var tabStrip = <%=RadTabStrip1.ClientID%>;
tabStrip.ValidationGroup = tabStrip.SelectedTab.Value;
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?
8 Answers, 1 is accepted
The above given client side code will work only with RadTabStrip for asp.net. Now since you are using RadTabStrip for asp.net AJAX you need modify the client side code as shown below.
Regarding the compatibility with firefox. I can't make it work. When I click a tab in firefox it does not change tab even when no validation problems exist.
I already tried with some sample (and simple) code supplied on your demos and it does not work in firefox.
It just adds a # to my url!? This is strange! Can you help?
Thanks, A. Oliveira
Could you please tell me how to use this client script ?
I managed to change ValidationGroup on PostBack but not on client side.
I tried this :
But "tabStrip" is null in client side function.
Does "$find()" method need something that I'm missing ?
On PostBack I do :
What could be wrong?
Since you're attaching a handler to the OnClientTabSelected event the first argument sent to the function will be the TabStrip instance itself:
I hope this helps.
All the best,
the Telerik team
selectedTab.get_value() returns null. Should this be
If you want to validate against Tabs' text, then you can use get_text(). Otherwise, please make sure that Items have values, so that the script does not return null.
the Telerik team