PDA

View Full Version : [CLOSED] Gridpanel column Sort states



RCM
Dec 04, 2012, 2:59 PM
Hi,

Does the gridpanel columns only have two sort states Ascending and Descending, if so is there a way to extend it to a have a third state of None. The current functionality I am seeing now is once you sort a column, you cannot remove the sort by clicking the column. please advise

Daniil
Dec 04, 2012, 4:46 PM
Hi @RCM,

There is no such built-in functionality.

There is the ColumnModel's HeaderClick event. I would start from this point.

You, probably, will need to use the setSortState method.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.column.Column-method-setSortState

RCM
Dec 04, 2012, 6:03 PM
Hi,

I will give it a shot and let you know how it goes.