PDA

View Full Version : Grouping collapses when column menuitem is clicked



dedeoc
31 Jul 2013, 7:50 AM
Hi, I am using 4.0.1. I have added the grouping feature to my code but every time I try to sort asc/ desc or group by a field of a column all my exapanded groups collaspe?

Thanks

senthil41189
31 Jul 2013, 10:33 PM
Hi,
You can use the collapsible:false configuration in the Feature configuration to prevent the collapse feature. If you still need the collapse feature in your grid you need to manually Expand the groups after you sort using the ExpandAll().


Hope this helped.....

dedeoc
31 Jul 2013, 11:49 PM
Hi,

I'm using 4.0.1 therefore there is no collapse all feature so I had to write it myself. Surely the framework should remember which grouping you have expanded? Is this a bug?

senthil41189
1 Aug 2013, 1:50 AM
Hi,
Ya in the 4.01 we have a Ext.Grid.Feature.GroupingSummary. In this ExpandAll() is also available. You can use this as below( to expand just the group you choose) or expandAll().


var groupingFeature = grid.features[0];
groupingFeature.expand(groupName, true);
groupingFeature.expandAll()

dedeoc
1 Aug 2013, 2:12 AM
That is not available in 4.0.1!