This is a migrated thread and some comments may be shown as answers.

validate currently selected tab

3 Answers 68 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Craig Wallace
Top achievements
Rank 1
Craig Wallace asked on 02 Sep 2010, 11:57 AM
Hi,

How can I force validation of the currently selected tab on tabclick?  The RadTabStripEventArgs object contains only information on the tab that was just clicked, not the tab that was previously selected.

Thanks,

Craig

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Sep 2010, 01:39 PM
Hello Craig,


Here is the documentation which describes on how to get the previously selected tab.
Get the previously selected tab


-Shinu.
0
Craig Wallace
Top achievements
Rank 1
answered on 02 Sep 2010, 02:33 PM
Hi Shinu,

Thanks for that.  I can now get the tab server-side, but how do I invoke client-side validation of the tab contents based on the tab value?  Also, how do I cancel the tabclick event if validation fails?

Thanks,

Craig
0
Accepted
Yana
Telerik team
answered on 07 Sep 2010, 03:20 PM
Hi Craig,

You can use OnClientTabSelecting event of RadTabStrip and use set_cancel(true) method to cancel the postback.

Regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
Craig Wallace
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Craig Wallace
Top achievements
Rank 1
Yana
Telerik team
Share this question
or