View Full Version : How to add a listener when selecting the grouping column in a GroupSummaryView

4 Mar 2010, 5:13 AM
I've got a chart linked up to the group view, but I want to change what the chart displays based on which column is being grouped in the grid. The column header allows you to select the grouping column, but I cant figure out how to add a listener to that specific menu selection. Any ideas?

4 Mar 2010, 5:25 AM
You're right. The GroupingStore subclass needs to add some events of its own to broadcast when its grouping state changes!

For now, you can do that yourself using createSequence on the appropriate methods.

4 Mar 2010, 5:27 AM
doesn't beforerefresh of GroupingView help?

4 Mar 2010, 5:32 AM
Actually, there's http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.GridPanel&member=groupchange

4 Mar 2010, 6:03 AM
Thanks, I was beating my self up. I should have thought about adding the listener to the store.

4 Mar 2010, 6:15 AM
It's the GridPanel you listen to as it happens.

IMNSHO, the GroupingStore should offer events too.