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

[Solved] Date Validation on Grid Edit - Chrome

0 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark Shortt
Top achievements
Rank 1
Mark Shortt asked on 07 Jun 2012, 05:32 PM
Hi

My project is using MVC 4

I have added a Gird and set it to load / edit via Ajax. My model for the grid has a date field shown below:

[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
public DateTime StartDate { get; set; }

When I edit the grid (inline) using either IE or Firefox the date field works fine. My problem arises when I try to use Chrome to edit the field. As soon as I use the datepicker to select a date higher that the 12th of a month (e.g. April 19) I get an error saying "The field Start Date must be a date. "

Can you advise how this can be fixed?

Thanks

Mark  
 


Tags
Grid
Asked by
Mark Shortt
Top achievements
Rank 1
Share this question
or