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

Trigger validation group base on current tab

1 Answer 110 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 11 Jul 2016, 09:31 AM

i am using TabStrip with RadMultiPage. 

these tabs share the save asp:Button. i would like to know is it possible to trigger the validationgroup base on the current selected tab?

 

for example i have 3 tabs

Tab 1 - Validation group: "validateIntro"

Tab 2 - Validation group: "validateBody"

Tab 3 - Validation group: "validateFinal"

 

so when user is on tab 1 and click on the Next button, only validateIntro should fire, similarly when user is on tab 2 only validateBody should fire

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 14 Jul 2016, 08:39 AM
Hello Benjamin,

You could set the RenderSelectedPageOnly property of the RadMultiPage to true and place the validation for each page within the corresponding RadPageView. This way only the selected page should be rendered and only the selected page validation should be fired.

Regards,
Veselin Tsvetanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TabStrip
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or