您的位置:首页 > 其它

ext grid column 设置默认按某列排序

2013-04-07 20:55 351 查看
store( {
sortInfo: { field: "", direction: "ASC" }
} ) ;

例如:

new Ext.data.JsonStore( {
fields : [ {name : 'begin'},{name : 'end'},{name : 'timeDesc'} ],
sortInfo: { field: "begin", direction: "ASC" },	// 设置列begin按照asc:正序
proxy : new Ext.data.HttpProxy({
headers : {
'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8'
},
method : 'POST',
timeout : 600000,
url : getContextPath() + ''
})
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: