Trigger validation group base on current tab

2 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    42 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
    Veselin Tsvetanov avatar
    241 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.

    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. DevCraft R3 2016 release webinar banner
Back to Top