Results 1 to 7 of 7

Thread: 6.5 Classic: Grid issue on reload

    You found a bug! We've classified it as EXTJS-22842 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User
    Join Date
    Jul 2015
    Location
    Australia
    Posts
    17

    Default 6.5 Classic: Grid issue on reload

    Ext version tested:
    Ext 6.5.0.775 Classic

    Browser versions tested against:
    Chrome 60.0.3112.101 (64-bit)

    Fiddle:
    https://fiddle.sencha.com/#view/editor&fiddle/25fk

    Description:
    Issue occurs when reloading a grid with a larger amount of data (100+). After the reload the grid will appear empty (You need to scroll down the grid a little bit to reproduce this). Scrolling will show the data again.

    Possibly related to: https://www.sencha.com/forum/showthread.php?335661 because the scrollbar also seems to jump to a different position when you first trigger the reload.

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    900

    Default

    Looks like a buffered renderer bug. If you set "bufferedRenderer" to false, it doesn't seem to happen.

  3. #3
    Sencha Premium User
    Join Date
    Jul 2015
    Location
    Australia
    Posts
    17

    Default

    That is correct, the buffered renderer makes a difference.
    However, in a real scenario with a more complex grid turning off the buffered renderer is going to cause performance issues.

  4. #4
    Sencha Premium User
    Join Date
    Jul 2015
    Location
    Australia
    Posts
    17

    Default

    Bump

  5. #5
    Sencha Premium User
    Join Date
    Jul 2015
    Location
    Australia
    Posts
    17

    Default

    Bump

  6. #6
    Sencha Premium User
    Join Date
    Nov 2012
    Location
    Austria
    Posts
    55

    Default

    I have opened a ticket for this error:
    This bug is fixed in the Nightly-Build.


    Here's the override to solve the problem:

    Code:
    Ext.define( 'EXTJS-26076.view.TableLayout', {    override: 'Ext.view.TableLayout',
        finishedLayout: function(ownerContext) {
            var me = this,
                ownerGrid = me.owner.ownerGrid,
                nodeContainer = Ext.fly(me.owner.getNodeContainer()),
                scroller = this.owner.getScrollable(),
                buffered;
    
            me.callSuper([ ownerContext ]);
    
            if (nodeContainer) {
                nodeContainer.setWidth(ownerContext.headerContext.props.contentWidth);
            }
    
            buffered = me.owner.bufferedRenderer;
            if (buffered) {
                buffered.afterTableLayout(ownerContext);
            }
    
            if (ownerGrid) {
                ownerGrid.syncRowHeightOnNextLayout = false;
            }
    
            if (scroller && !scroller.isScrolling) {
                if (buffered && buffered.nextRefreshStartIndex === 0) {
                    return;
                }
                scroller.restoreState();
            }
        }
    });

  7. #7
    Sencha Premium User
    Join Date
    Jul 2015
    Location
    Australia
    Posts
    17

    Default

    Thanks for the update and the override!

Similar Threads

  1. Replies: 14
    Last Post: 12 Jul 2016, 9:39 AM
  2. Replies: 2
    Last Post: 20 Dec 2013, 1:22 PM
  3. Grid new record reload issue
    By border9 in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 10 Aug 2009, 2:53 AM

Posting Permissions

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