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

[Solved] Turn off Date Picker Validation

1 Answer 115 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kapil
Top achievements
Rank 1
Kapil asked on 08 Mar 2012, 07:02 PM
I have a date field in my grid.  I can't seem to figure out how can I turn off the validation if a user doesn't enter a date. In my data model the date property is not decorated with required attribute. Also in the database that I am using the date column is allowed a null and has a default value. I also turned off the Client Validation in the web config file. But still can't figure out why the date field has client validation turned on. The MVC Telerik version I am using is 2011.2.712.340.

Thanks

1 Answer, 1 is accepted

Sort by
0
Kapil
Top achievements
Rank 1
answered on 08 Mar 2012, 10:30 PM
So I was able to find out how to turn off the client validation if the user is not required to enter a date while filling a form. When declaring the data model if you have the property to as nullable
public DateTime? YourDateProperty {get; set;}
then you can edit or insert a new record. In my case I had the date field as one of the columns in the grid and I was having problems where I could not insert a new record without the user having to enter a date.
Tags
Date/Time Pickers
Asked by
Kapil
Top achievements
Rank 1
Answers by
Kapil
Top achievements
Rank 1
Share this question
or