Trigger validation group base on current tab

2 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    51 posts
    Member since:
    Jul 2016

    Posted 11 Jul Link to this post

    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

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    290 posts

    Posted 14 Jul Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top