knockout.js - Unable to format date with KendoUI Grid and Knockout-Kendo -
i having trouble getting date parse kendo grid. using knockout-kendo assist data-bindings.
the date-string in json response attempting parse looks 2012-03-13t00:00:00
.
the column definition kendo grid contains format: '{0:mm/dd/yyyy}'
seems work on grid isn't using knockout-kendo parse exact same date string.
i have created (well re-using separate question) jsfiddle demonstrates the issue here.
i want stay away row-templates because haven't figured out how correctly set them in knockout binding, open alternative or "just correct" suggestions.
it possible specify datasource
in configuration. need still specify data
key, binding know passing options , not data directly.
can like:
<div id="grid" data-bind="kendogrid: { data: undefined, datasource: { data: salesearchresults, schema: { model: { fields: { saledate: { type: 'date' } } } } },
updated fiddle here: http://jsfiddle.net/rniemeyer/eufxg/
Comments
Post a Comment