Results 1 to 4 of 4

Thread: Grouped Grids and Store config

  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2007
    Posts
    125
    Answers
    1
    Vote Rating
    7
      0  

    Default Grouped Grids and Store config

    I'm using Ext.4.2.2.1144 and have run into an issue with grouped grids and the store config. If I want the grid to be able to NOT be grouped I have some code that will use the store.clearGroup() to create a 'flat' list. However, if I don't specify a groupField on the store for the inital case of the 'flat' group, then programatically use the store.group('fieldhere') it will group on the field but the grid starts to have odd behaviour. For example, if it's grouped, then I select a row in a lower group, collapse a group higher up in the groups, then I can't select anything in the lower group that already has a selection.

    If I pass in the groupField in the store as part of the initial config, then I don't have this issue. See fiddle:

    https://fiddle.sencha.com/#fiddle/j5o

    Specific steps in this fiddle:
    1. The initial view should not be grouped. Select 'department' in the combobox above the grid.
    2. The grid is grouped by department. Select a row in the last department group.
    3. Collapse the first department group.
    4. try and select another row in the last department group. It wont' work.

    if you uncomment line 9, then run again the steps will work.

    I'm just wondering if there is a better way to handle this other than forcing some groupField in the store, then clearing the grouping upfront to force a 'flat' view first.

  2. #2
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99
    Vote Rating
    46
      0  

    Default

    You are using framework v: Ext.4.2.2.1144
    But fiddle example is in version: Ext.5.1.0.107
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2007
    Posts
    125
    Answers
    1
    Vote Rating
    7
      0  

    Default Change extjs version to 4.2.2.1144

    I thought I might have saved it for testing purposes as 5.1, but after saving it again under v4.2.2.1144 then exiting if I hit that url as a guest user it changes back to 5.x in fiddle. I opened the fiddle again and sure enough it's 5.x again so I'm not sure if it's a fiddle bug or something I'm doing incorrectly.

    Either way you can just change the version as a guest to see the bug.

    Thanks,
    Miro

  4. #4
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99
    Vote Rating
    46
      0  

    Default

    I have changed the version and did not notice the bug.
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

Posting Permissions

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