在这里,我编写了基于 id 获取 CategoryName 值的存储过程,值将像印度、美国、巴西一样提供服务,但在 UI 部分中,值会自动按字母顺序排序,显示美国、巴西、印度等组。我想按照印度、美国、巴西格式的顺序显示。我究竟做错了什么?提前致谢。
$(document).ready(function () {
var grid = $("#grid").kendoGrid({
dataSource: {
type: "GET",
transport: {
read: {
url: "some url placed here",
dataType: "jsonp"
}
},
pageSize: 20,
serverSorting: false,
group: {
field: "CategoryName",
aggregates: [{
field: "abc",
aggregate: "count"
}, {
field: "def",
aggregate: "sum"
}, {
field: "ghi",
aggregate: "sum"
}]
},
aggregate: [{
field: "abc",
aggregate: "count"
}, {
field: "def",
aggregate: "sum"
}, {
field: "ghi",
aggregate: "sum"
}]
},
columns: [
//column section goes here.....
],
sortable: false
//...
});
});