I've been developing an app for some time now using the Kendo UI MVC wrappers. I just updated my Telerik components with version 2014.2.1008 this weekend. All of a sudden, the DatePickerFor is not working correctly for nullable DateTime values where it had been working before. Instead of a non-null date value being displayed, I see something like {0:17} in the edit box and it won't validate.
Assuming my model has a property like this:
public DateTime? DueDate { get; set; }
The following .cshtml markup produces the erroneous result:
@Html.Kendo().DatePickerFor(model => model.DueDate)
The following .cshtml markup produces the correct result, but I can't use it because the value may be null:
@Html.Kendo().DatePickerFor(model => model.DueDate.Value)
I can't deploy other code I've been working on tonight because of this problem. I need a resolution to this ASAP.
Assuming my model has a property like this:
public DateTime? DueDate { get; set; }
The following .cshtml markup produces the erroneous result:
@Html.Kendo().DatePickerFor(model => model.DueDate)
The following .cshtml markup produces the correct result, but I can't use it because the value may be null:
@Html.Kendo().DatePickerFor(model => model.DueDate.Value)
I can't deploy other code I've been working on tonight because of this problem. I need a resolution to this ASAP.