Results 1 to 2 of 2

Thread: Grouping in a Store

  1. #1
    Sencha User
    Join Date
    Jul 2017
    Posts
    52
    Answers
    2

    Default Answered: Grouping in a Store

    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.

  2. Check out Ext.data.Store#getGroups() to get the collection of groups and their child records.

  3. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165

    Default

    Check out Ext.data.Store#getGroups() to get the collection of groups and their child records.
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. [CLOSED] Grouping grid breaks when grouping store post-render, collapsing groups
    By anselmtmcclain in forum Ext 5: Bugs
    Replies: 2
    Last Post: 19 Jun 2014, 11:10 AM
  2. Replies: 1
    Last Post: 19 Mar 2014, 4:10 PM
  3. [CLOSED] [4.2.0] grid grouping summary disaperas after grouping store
    By martins256 in forum Ext:Bugs
    Replies: 1
    Last Post: 18 May 2013, 8:41 AM
  4. Replies: 3
    Last Post: 3 Mar 2010, 10:06 PM
  5. Replies: 5
    Last Post: 12 Jul 2009, 10:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •