PDA

View Full Version : Is there a multi-grouping feature in Ext JS 4?



Andrei Nicusan
24 Nov 2011, 9:37 AM
Hi everybody,

I'm asking this because I can see there is a 'groupers' property on a store which expects an array. Nevertheless, when I set an array of two groupers to this config, only the first one has been taken into consideration when rendering a grid panel with such a store attached.

So, how can I force a 2+ depth grouping?

mitchellsimoens
24 Nov 2011, 9:43 AM
In a grid, it only supports one... in the future it may make it in or a community member (like yourself) and do it now.

skirtle
24 Nov 2011, 8:16 PM
Groupers are really just sorters but with different intent. You should find that all of your groupers do take effect from a sorting perspective, it's just the grid's grouping feature that only supports a single level of grouping. The data package was written to be more generic so even though there isn't currently a component that takes advantage of multiple groupers there's nothing to stop one being written, be it a grid or otherwise.