2
我已经在数据源分组数据:自定义排序在KendoUI网/数据源
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: " ",
}
},
//and some other parameters specified
// group by the "category" field
group: {
field: "category",
aggregates: [
{ field: "price", aggregate: "max" },
{ field: "price", aggregate: "min" }
]
}
});
现在我想根据比这里指定的字段其他字段中输入组进行排序。这可以如何实现?或者我如何禁用或重写“dir”的默认排序行为作为升序。
您必须在数据源上设置'serverSorting:true'并在服务器上实现自己的排序。 – Brett