Results 1 to 6 of 6

Thread: Grouped Grid startCollapsed becomes expanded after reload.

    You found a bug! We've classified it as EXTJS-15111 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Join Date
    Jul 2014
    Posts
    2
    Vote Rating
    0
      0  

    Exclamation Grouped Grid startCollapsed becomes expanded after reload.

    Fiddle example show the issue - run the fiddle and then click on the "Reload Store Different Data" button to see the problem.

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

    Ext version tested:
    • Ext 5.0.1



    Browser versions tested against:
    • Chrome 38
    • IE9



    DOCTYPE tested against:
    • Strict



    Description:
    • After initial store load, when you have a grouped grid and startCollapsed is set to true, reloading new data via store.load() causes the startCollapsed flag to be set to false for any groups that didn't exist in original data..



    Steps to reproduce the problem:
    • Run fiddle example
    • Click on the "Reload Store Different Data" button



    The result that was expected:
    • Store/grid reloaded with groups collapsed



    The result that occurs instead:
    • Store/grid reloaded and groups are expanded
    Last edited by dkuhnle; 16 Sep 2014 at 11:29 AM. Reason: Correction to bug

  2. #2

    Join Date
    Jul 2014
    Posts
    2
    Vote Rating
    0
      0  

    Post possible error line

    In ext-all-debug.js, (ExtJs 5.0.1) line 148141 is:
    Code:
    me.groupingFeature.startCollapsed = false;
    Seems like this is wrong...

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Vote Rating
    292
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  4. #4
    Ext JS Premium Member lukerahl's Avatar
    Join Date
    Nov 2007
    Location
    New Mexico, USA
    Posts
    27
    Vote Rating
    6
      0  

    Post Work around...

    I'm using the following to get around this issue for now.

    Grid panel is listening for store "load" event:
    Code:
    var store = Ext.create('Ext.data.Store',{
         ...
         listeners:{
              load:function(){
                   this.fireEvent('storeloadsuccess');
              }
         }
    });
    
    var grid = Ext.create('Ext.grid.Panel',{
         ...
         store: store,
         features: [{
              ftype: 'grouping',
              id: 'groupingFeature',
              startCollapsed: true
         }],
         listeners:{
              storeloadsuccess: function() {
                   this.view.getFeature('groupingFeature').startCollapsed = true;
              }
         }
    });
    
    grid.relayEvents(store,['storeloadsuccess']);

  5. #5
    Sencha Premium User
    Join Date
    Dec 2010
    Posts
    264
    Vote Rating
    8
      0  

    Default

    How long is this going to take to get fixed??

  6. #6
    Sencha Premium User tlloyduk's Avatar
    Join Date
    Sep 2010
    Posts
    91
    Vote Rating
    6
      0  

    Default

    Seems to still be a problem in 6.5.2.463, when doing a setData() on the store also

Posting Permissions

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