我的剑道网格具有以下参数: 数据源:
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"
当我单击列的标题时,它将通过发送请求进行排序。但是对于列“名称”,我需要客户端排序。如何在不向服务器发送请求的情况下对列进行排序?因此,排序将由Kendo在Javascript上进行处理。