I have a kendo grid and I am displaying time in one column as shown in pic
but whenever I update the time using edit kendo button time picker it does not display correct time although if I select 5:12 AM it save correctly in database but on update it doesn't display correct time. Some one has written that use parse function in the model definition
parse: function (d) {
$.each(d, function (idx, elem) {
elem.event_time = kendo.parseDate(elem.event_time, "yyyy-mm-ddThh:mm:ss.fffz");
});
return d;
}
And then use {0:hh:mm tt} for formatting the column.
columns : [
...
{
field : "date",
title : "Date",
format: "{0:hh:mm tt}"
} ,
...
]
But it is still not working and it returns first event time of grid and even on page load it is not working. How to display mysql time data in kendo grid in utc or other format.