У меня есть сетка кендо со следующими параметрами: Источник данных:
autoSync: true
batch: false
data: null
fields: [{…}]
inPlaceSort: false
offlineStorage: null
pageSize: 100
schema: {data: "models", total: "total", model: {…}}
select: null
serverAggregates: false
serverFiltering: true
serverGrouping: false
serverPaging: true
serverSorting: true
Столбцы:
0:
columnMenu: true
encoded: true
field: "id"
filterable: {cell: {…}}
includeInParent: false
resizable: true
sortable: true
title: "ID"
type: "number"
__proto__: Object
1:
columnMenu: true
encoded: true
field: "duration"
filterable: {cell: {…}}
resizable: true
sortable: true
title: "Duration"
type: "number"
__proto__: Object
2:
columnMenu: true
encoded: true
field: "name"
filterable: {cell: {…}}
resizable: true
sortable: true
title: "Name"
type: "string"
Когда я нажимаю на заголовок столбца, он сортируется путем отправки запроса.Но для столбца «имя» мне нужна сортировка на стороне клиента.Как отсортировать столбцы без отправки запроса на сервер?Таким образом, сортировка будет обработана в Javascript кендо.