PDA

View Full Version : [CLOSED][3.1] Non-sortable columns have an sortable css



Trey
4 Feb 2010, 8:31 AM
Ext version tested:


Ext 3.1.0



Adapter used:


ext


css used:


only default ext-all.css





Browser versions tested against:


FF3 (firebug 1.3.0.10 installed)



Operating System:


Win vista



Description:


I have a grid with a non-sortable columns. when i sort the store, a css and an image is added to the column. I don't want this. Is it the required behavior ?






Possible fix:



var cls = grid.getView().sortClasses;
grid.getView().sortClasses = '';
store.sort('name', 'DESC');
grid.getView().sortClasses = cls;

Jamie Avins
4 Feb 2010, 9:03 AM
There is a clearHeaderSortState method on GridView. Currently updateSortIcon does not check to see if the column has a sortable flag or not so currently this is a required behavior.