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

DatePicker and jquery validation error

1 Answer 176 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 17 Apr 2012, 04:50 PM

Hi All,

We're experiencing a problem with the DatePicker control that ships with Kendo when using jQuery validation that ships with ASP.NET MVC. This is my best attempt at describing the problem:

When using jquery.validation that ships with MVC, and you call $(‘form’).valid() it marks the outer span of the datepicker (the one with the k-datepicker class on it) with the error class. Then, when you validate the form again (i.e: change another field, or click save), the jquery.validation goes and removes any element with the .error class (not sure why, just the way it works). Because this class was put onto the datepicker itself, calling .hide() actually removes the datepicker from view.

Any ideas on how to solve this?

1 Answer, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 25 Apr 2012, 09:34 AM

I like the datepicker when I used my jquery..
it's easier for me to validate...
Tags
Date/Time Pickers
Asked by
Jason
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Share this question
or