【发布时间】:2014-08-29 06:43:02
【问题描述】:
例如,我有以下代码:
$("#grid").kendoGrid({
dataSource: {
data: students,
pageable: false
},
scrollable: true
sortable: true,
selectable: true,
columns: [
{ field: "Name", title: "Name", width: 230},
{ field: "Sex", title: "Sex", width: 50 },
{ field: "Ca", title: "C.A." , width: 55 },
{ field: "TotolScore", title: "Totol Score", width: 100 },
{ field: "Rank", title: "Rank", width: 60 }
]
});
上面的代码允许我对列进行排序。但是我需要为“Rank”列做一些特别的事情。我想要的是当我单击“Rank”列时,它会根据“TotalScore”值进行排序。
这可能吗?
谢谢
【问题讨论】:
标签: kendo-ui kendo-grid