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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -