Results 1 to 10 of 10

Thread: [4.2.1.883] Grouping Feature collapsing isn't possible if you use bindStore

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-10022 in 4.2.2.1144.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    22

    Default [4.2.1.883] Grouping Feature collapsing isn't possible if you use bindStore

    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.2.1.883
    Browser versions tested against:
    • FF21.0
    • IE10
    Description:
    • If we use the bindStore function on a grid to bind a new store the grouping feature isn't working right. You can't colapse groups anymore.
    Steps to reproduce the problem:
    • bind a store via the bindStore function
    • click on a group to collapse it
    • see Testcase
    The result that was expected:
    • A collapsed Group
    The result that occurs instead:
    • group.child undefined exception
    Test Case:
    • click the bindStore Button
    • try to collapse a group
    Code:
            Ext.onReady(function() {
            var myStoreToBind = Ext.create('Ext.data.Store', {
            
                fields: ['name', 'cuisine'],
                
                groupField: 'cuisine',
                sorters: ['cuisine','name'],
                
                data: [{
                    name: 'Cheesecake Factory',
                    cuisine: 'American'
                },{
                    name: 'University Cafe',
                    cuisine: 'American'
                },{
                    name: 'Nola\'s',
                    cuisine: 'Cajun'
                },{
                    name: 'House of Bagels',
                    cuisine: 'Bagels'
                },{
                    name: 'The Prolific Oven',
                    cuisine: 'Sandwiches'
                },{
                    name: 'La Strada',
                    cuisine: 'Italian'
                },{
                    name: 'Buca di Beppo',
                    cuisine: 'Italian'
                },{
                    name: 'Pasta?',
                    cuisine: 'Italian'
                }]        
            });
        
            Ext.create('Ext.container.Viewport', {
                 layout: 'fit',
                 items: [{
                    xtype: 'grid',
                    id: 'mygrid',
    
                    columns: [{
                        text: 'Name',
                        flex: 1,
                        dataIndex: 'name'
                    },{
                        text: 'Cuisine',
                        flex: 1,
                        dataIndex: 'cuisine'
                    }],
                    
                    features: [{
                        ftype: 'grouping',
                        groupHeaderTpl: '{columnName}: {name} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})',
                        hideGroupedHeader: true,
                        startCollapsed: true,
                        id: 'restaurantGrouping'
                    }],
                    
                    dockedItems: [{
                        xtype: 'toolbar'
                        ,dock: 'left'
                        ,ui  : 'footer'
                        ,defaults: {minWidth: 80}
                        ,items   : [{
                             xtype: 'button'
                            ,text : 'Bind Store'
                            
                            ,listeners: {
                                click: function(button, ev) {
                                    var grid = Ext.getCmp('mygrid');
                                    
                                    grid.bindStore(myStoreToBind);
                                }
                            }
                        }]
                    }]
                }]
            });
        });
    HELPFUL INFORMATION

    Operating System:
    • Win7
    *EDIT BY SLEMMON
    Issue observed in 4.2.0 and 4.2.1
    Tested OK in 4.1.3
    Last edited by slemmon; 31 May 2013 at 9:34 AM. Reason: additional test notes

  2. #2

    Default

    Here is an online test that will show the bug .

    http://fiestadev.bryntum.com/#192-gr...-bindstore-bug

  3. #3
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165

    Default

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

  4. #4
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    226

    Default

    I have same problem with grid.reconfigure but with another error - "TypeError: group.children is undefined ext-all-dev.js Line 157882"

    Any solution for this bug? After click on grouping header and getting error my app is fully broken - different views are not displayed or displayed very incorrectly

  5. #5
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    226

    Default

    not fixed in nightly ext-4.2.2.919

  6. #6
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    8

    Default update?

    Is there an update on this?

  7. #7
    Sencha User
    Join Date
    Sep 2013
    Posts
    2

    Default

    Quote Originally Posted by mpuccerella View Post
    Is there an update on this?
    ?
    BR
    Esteban

  8. #8
    Sencha User
    Join Date
    Apr 2010
    Posts
    5

    Default

    HI... Any solution for this bug? please...

  9. #9
    Sencha Premium Member milestonebass's Avatar
    Join Date
    Dec 2009
    Location
    Melbourne, Australia
    Posts
    28

    Default

    Looks like this is still present in the latest 4.xx build. Did anyone come up with a workaround?

  10. #10
    Sencha User
    Join Date
    Nov 2016
    Posts
    1

    Default

    Was this ever fixed?

Posting Permissions

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