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

Validation on Multiple Tab strip

1 Answer 273 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Kai
Top achievements
Rank 1
Kai asked on 12 Feb 2013, 07:45 PM
I'm using a tab strip to update a single View-model. I'm using only one form tag for my 3 tabs however the validation for all non-visible tabs doesn't fire the validation event. Is there any work around for this or is this expected behavior?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Feb 2013, 06:31 PM
Hello Kai,

The problem could occur if you are using the jQuery validation because it ignores all not visible inputs by default. If that is the case then you can avoid the problem by overriding the default settings e.g.

<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script> 
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>
<script>
    $.validator.setDefaults({
        ignore: ""
    });
   
</script>
Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip
Asked by
Kai
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or