Hi Animal,

Originally Posted by
Animal
It's a function, you have to call it and it sorts by the fields you specify.
I am trying to get your multi-sorting code working. Here is my call string:
PHP Code:
this.store.sortByFields([{field: 'date', direction: 'DESC'},{field: 'sta', direction: 'ASC'}]);
Nothing happens.
here is my code structure:
PHP Code:
Ext.ns('myNS');
myNS.myGrid = Ext.extend(Ext.grid.EditorGridPanel, {
border:false
,initComponent:function() {
....
....
Ext.apply(this, {
store: this.store
,loadMask: true
,cm: cm
....
});
Verigo.myGrid.superclass.initComponent.apply(this, arguments);
} // end of initComponent
,onRender:function() {
....
} // end of function onRender
});
Ext.reg('myGrid', myNS.myGrid);
I have tried calling sortByFields in the initComponent and the onRender function without success. Can you give me any assistance?
Cheers,
Trav.