View Full Version : Grouping in a Store

17 Dec 2017, 8:09 PM
I have a store of data that I am using to render information. I need to group the info and render the groups as lists. I am looping through Store.getData().items and that seems to have only sorted the data.

Is there a way that I can loop through the groups before I loop through the items in a group?

That way I can output the title of each group before each item in the group.

18 Dec 2017, 8:39 PM
Check out Ext.data.Store#getGroups() (http://docs.sencha.com/extreact/6.5.1/modern/Ext.data.Store.html#method-getGroups) to get the collection of groups and their child records.