Search code examples
asp.net-mvckendo-gridkendo-ui-mvckendo-datetimepicker

kendo datepicker does not accept its own dates in popup editing


I am using kendo ui grid with popup editing. When I edit a row a dialog is displayed. One of the fields is a date represented by kendo datetimepicker.

I get this error when I choose a date:

enter image description here

Why is this date invalid, I used the control to set it?!


Solution

  • Add the attribute

    [DataType(DataType.Date)]
    

    On the date property.