前端:
grid.on('headerclick',function(theGrid, rowIndex, columnIndex, e){
if(rowIndex==7){var datastore = theGrid.getStore();
datastore.on('beforeload',function(){
Ext.apply(
this.baseParams,{
sortby:'priviledge',
direction:'DESC'
});
});
datastore.proxy.conn.url =requestURL,
datastore.load();
}
});
后台:接受参数 处理