ProjectStore = new Ext.data.GroupingStore({
proxy: new Ext.data.HttpProxy({
url: "DATA/ProjectInfo/ProjectInfo.aspx",
method: "POST"
}),
reader: new Ext.data.JsonReader({
fields: projectfields,
root: "data",
totalProperty: "totalCount"
}),
sortInfo: {
field: 'region',
direction: "ASC"
},
remoteSort: true //服务器端排序
});
SortInfo为对某列排序的代码。注意如果gridpanel采用了分页,要加上 remoteSort: true
Extjs中对GridPanel的列排序
最新推荐文章于 2019-12-17 17:42:42 发布