View Full Version : Grid menu sort . What listener shoud I use

2 Sep 2012, 3:00 AM
To display records sorted ASC/DESC I need to click on grid's header to "pop-up" menu with sort items.
But before to do sort , I'd like to be able to "check/uncheck" "Show in groups" checkbox in my listener.
Does anybody have any idea how to do this ?

2 Sep 2012, 6:45 PM
"Show in groups" is menu item controlled by grid grouping feature, not by grid sorting. This item is used to toggle on/off grouping feature. To uncheck this item at the beginning, you just need to config to disable grouping feature.

features: [{
ftype: 'grouping',
disabled: true

3 Sep 2012, 12:59 AM
check out the source of the grouped grid example to see how to do it programically also...


to listen for this change, you listen to the 'groupchange' event on your store for your grid