Define your Kendo grid column as follows.
columns.Bound(o => o.FromDate).Title("From Date").Format("0:dd/MM/yyyy}").EditorTemplateName("Date");
Inside "Shared" Folder => EditorTemplates create a new Editor Template called "Date" and add the following.
@model DateTime?
@(Html.Kendo().DatePickerFor(m => m))
Template allows you to pass even a NULL DateTime value.
No comments:
Write comments