Tabstrip and Validation

2 posts, 0 answers
  1. Joey
    Joey avatar
    9 posts
    Member since:
    Nov 2012

    Posted 08 Feb 2013 Link to this post

    I'm using the out-of-the box data annotations and letting MVC handle the client-side validations for me. I'm also using a tabstrip to segregate different sections of input.  However, all of the input is in the same form.

    What I've found is that if I go to a different tab other than the first one and trigger the form submit, the validation doesn't fire and the form gets submitted.

    Is there any way to avoid this?  How should I be going about it?


    -Joe Benckert
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 12 Feb 2013 Link to this post

    Hello Joey,

    Basically the validator should be working even on multiple tabs.

    I created a JSBin example which you can try and see that the form is not submitted until the validation passes.

    I assume that in your case you are loading the tabs with Ajax and they are not validated because the inputs does not exist into the DOM before the content is loaded.

    Kind Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top