Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Ext 4.2 Bugs: Ext.grid.feature.Grouping

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    Sencha User
    Join Date
    Mar 2013
    Posts
    1

    Default

    • " title="Evil" border="">
      Hi all I think I solved the problem.You shouldn't create the store in the controller.So all you need is to use the store property in the controller (as in sencha documentaion) and then get the store using Ext.getStore function.Don't forget to insert the store in the view using the store property.



  2. #12
    Sencha User
    Join Date
    Jun 2012
    Posts
    8

    Default

    Hi rammere,
    Can you explain better your solution (maybe with some examples)?
    Thanks a lot

  3. #13
    Sencha Premium Member
    Join Date
    Jan 2010
    Posts
    2

    Default

    I had the same problem. I found this patch from another thread that is working for me
    http://www.sencha.com/forum/showthre...d-Grouping-Bug
    Quote Originally Posted by michael.johnson View Post
    This patch is working well for me. It looks like the 'data-recordIndex' attribute is no longer skipping unrendered records in collapsed groups i.e. not matching original store indexes. However the 'data-recordId' attribute always appears to be correct.

    Code:
    Ext.define('App.overrides.view.Table', {
        override: 'Ext.view.Table',
    
    
        getRecord: function (node) {
            node = this.getNode(node);
            if (node) {
                //var recordIndex = node.getAttribute('data-recordIndex');
                //if (recordIndex) {
                //    recordIndex = parseInt(recordIndex, 10);
                //    if (recordIndex > -1) {
                //        // The index is the index in the original Store, not in a GroupStore
                //        // The Grouping Feature increments the index to skip over unrendered records in collapsed groups
                //        return this.store.data.getAt(recordIndex);
                //    }
                //}
                return this.dataSource.data.get(node.getAttribute('data-recordId'));
            }
        },
    
    
        indexInStore: function (node) {
            node = this.getNode(node, true);
            if (!node && node !== 0) {
                return -1;
            }
            //var recordIndex = node.getAttribute('data-recordIndex');
            //if (recordIndex) {
            //    return parseInt(recordIndex, 10);
            //}
            return this.dataSource.indexOf(this.getRecord(node));
        }
    });

  4. #14
    Sencha User
    Join Date
    Jun 2011
    Posts
    1

    Default

    Quote Originally Posted by alphimax View Post
    2) Another problematic case is when i insert a record into say position 0 [store.insert(0,record)], but there is already another record with the same column value as the newly inserted one which is not close to position 0, there is an attempt to group the records by the grouping feature upon the insert. That causes a recursive loop.
    Firefox freezes, Chrome spits the next:

    Uncaught RangeError: Maximum call stack size exceeded
    Ext.dom.Query.Ext.core.DomQuery.Ext.DomQuery.DQ.filter
    Ext.dom.Query.Ext.core.DomQuery.Ext.DomQuery.DQ.is
    Ext.define.is
    Ext.define.getNode
    Ext.define.indexOf
    Ext.define.onLastFocusChanged
    Ext.define.setLastFocused
    Ext.define.focusRow
    Ext.define.onRowFocus
    Ext.define.onLastFocusChanged
    Ext.define.setLastFocused
    Ext.define.focusRow
    Ext.define.onRowFocus
    Ext.define.onLastFocusChanged
    Ext.define.setLastFocused
    Ext.define.focusRow
    Ext.define.onRowFocus
    Ext.define.onLastFocusChanged
    Ext.define.setLastFocused
    Ext.define.focusRow
    Ext.define.onRowFocus
    ...
    I ran into this issue, the store has to be in order for the grouping to work. Insert the new record just before the first record with the same group and this bug doesn't manifest.

  5. #15
    Sencha User
    Join Date
    Sep 2015
    Posts
    3

    Default if you collapse a grouping higher in the grid, and select a record lower in the grid,

    • if you collapse a grouping higher in the grid, and select a record lower in the grid, the events return the wrong record. (the index seems to exclude the collapsed records). in Ext js4.2.1

  6. #16
    Sencha User
    Join Date
    Sep 2015
    Posts
    3

    Default if you collapse a grouping higher in the grid, and select a record lower in the grid

    Quote Originally Posted by wmcnamara View Post
    We've run into several issues with the grouping feature with in 4.2
    • When Binding a new store to a grid via bindstore, The group expand/collapse methods do not work (this includes the default click events).
    • if you collapse a grouping higher in the grid, and select a record lower in the grid, the events return the wrong record. (the index seems to exclude the collapsed records).
    • When editing a boolian column, when a grouping above said record is collapsed, we recieve an "TypeError: Cannot call method 'isVisible' of null" on line 104425 of ext-all-debug.js
      • likely relaited to wrong record being pass'd per the second issue above.
    Ext JS 4.2.0.663
    Chrome 25.0.1364.172
    Win 7 pro SP1 x64

    Is this issue resolved?
    • if you collapse a grouping higher in the grid, and select a record lower in the grid, the events return the wrong record. (the index seems to exclude the collapsed records). in Ext js4.2.1

Page 2 of 2 FirstFirst 12

Posting Permissions

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