PDA

View Full Version : error on sorting of grid column



aj3423
15 May 2009, 12:15 AM
A grid with 1 column, first time when I click the column header to sort it, it will automatically send a request with some params, but second time I click the header, it causes an error in firebug,
TypeError: this.activeRequest is undefined message=this.activeRequest is undefined ext-all-debug.js (line 12064)

here is my code:


cm = new XdrResultCM([{
header : "INF",
dataIndex : 'inf',
sortable : true
}]);
reader = new Ext.data.JsonReader({
fields : ['inf'],
root : 'root',
totalProperty : 'totalCount'
});
store = new Ext.data.Store({
remoteSort : true,
baseParams : {
lightWeight : true,
ext : 'js'
},
url : 'test.php',
reader : reader
});
grid = new Ext.grid.GridPanel({
store: store,
cm : cm,
width : 500,
height : 300,
trackMouseOver : false
})
})