I was trying to figure out a way to update the date input on the DatePicker if a user types in only the month and year. Most of our users are used to our old Telerik ASP.NET site where this was the default behavior of the date picker control. Ideally, I'd like to take their input and automatically reformat it to add the year. But I'm not sure how to achieve this with the Kendo MVC controls. The change event will not fire for me because the input is considered invalid. I attempted to add ParseFormats for "MM/dd" to my editor template but in stepping through the kendo source code it seems that this information is not passed through to the javascript object (which may be another issue.) Is there a good way to achieve this functionality? Thanks for your help.
Here is what my editor template looks like:
@model System.DateTime?
@(Html.Kendo().DatePickerFor(m => m).ParseFormats(new string[] { "MM/dd" }) )
Regards,
Brian
Here is what my editor template looks like:
@model System.DateTime?
@(Html.Kendo().DatePickerFor(m => m).ParseFormats(new string[] { "MM/dd" }) )
Regards,
Brian