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

validattion problem with TabStrip / Load on Demand RadPageView

1 Answer 56 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 2
Frank asked on 01 Dec 2009, 12:31 PM
Hi,

I use the tabstrip with usercontrols- load on demand:
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultvb.aspx

I want to use this inside a form with validation.
On every tab, there are different form elements, and each of them has to be validated, if AND ONLY IF the user has seleceted the tab.
When a user clicks on every tab, they get loaded to the system, and the form validation fires on every tab.
- The validation should of cause only happen on the the form elements for the selected tab.
How can this be done?

I believe i don't need to send code? - I have form on the master page, some form elements on the master page, and different form elements on the usercontrols -pages.

Any ideas?
thanx.

best regards,
Frank



1 Answer, 1 is accepted

Sort by
0
Roland
Top achievements
Rank 1
answered on 02 Dec 2009, 03:08 PM
Hello,


For every element in your tab, set ValidationGroup property to the same (but only in this tab):

Tab 1:
ValidationGroup = "Tab1";

Tab 2:
ValidationGroup = "Tab2";

If the validation groups are unique across tabs, the button on tab 1 will only validate this tab
Tags
TabStrip
Asked by
Frank
Top achievements
Rank 2
Answers by
Roland
Top achievements
Rank 1
Share this question
or