kendo ui grid date sorting is not working -
i trying sort data on desc date order can't, keep getting asc ordering on kendo ui grid, here code.
this.gridconfig = { datasource: { transport: { read: '/api/endpoint, datatype: 'json' }, schema: { data: "my_data_var" } }, sort: { field: "date", dir: "desc"}, resizable: true, filterable: true, pageable: { pagesize: 200 }, columns: [{ field: 'date', title: 'date', template: "#= kendo.tostring(kendo.parsedate(date, 'yyyy-mm-dd'), 'dd/mmm/yyyy') #"
sort option datasource configuration should :
datasource: { transport: { read: '/api/endpoint, datatype: 'json' }, schema: { data: "my_data_var" }, sort: { field: "date", dir: "desc"} },
Comments
Post a Comment