asp.net mvc - Kendo grid override default sort -
i have kendo grid 3 columns title, creationdate ans user
datasource: new kendo.data.datasource({ .... sort: [ { field: "creationdate", dir: "desc" } ], sortable: { mode: "multiple", allowunsort: true } ....
the probleme when try sort title or user, grid sort creationdate thenby title user
how can override default "creationdate" sort
you should set array datasource
's sort
property this:
sort: [ // sort "category" in descending order , "name" in ascending order { field: "category", dir: "desc" }, { field: "name", dir: "asc" } ]
more info can found here.
Comments
Post a Comment