Results 1 to 3 of 3

Thread: Bufferedrenderer grid dont update headers sort state extjs 4.2.4, 4.2.5

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-20220 in 4.2.6.1811.
  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    5

    Default Bufferedrenderer grid dont update headers sort state extjs 4.2.4, 4.2.5

    Found a bug in extjs 4.2.4, 4.2.5.

    Header Container don't updated when change sort on grid with buffered renderer.

    Example:

    Code:
    Ext.application({
        name : 'Fiddle',
    
        launch : function() {
            Ext.create('Ext.data.Store', {
        storeId:'simpsonsStore',
        fields:['name', 'email', 'phone'],
        data:{'items':[
            { 'name': 'Lisa',  "email":"[email protected]",  "phone":"555-111-1224"  },
            { 'name': 'Bart',  "email":"[email protected]",  "phone":"555-222-1234" },
            { 'name': 'Homer', "email":"[email protected]",  "phone":"555-222-1244"  },
            { 'name': 'Marge', "email":"[email protected]", "phone":"555-222-1254"  }
        ]},
        proxy: {
            type: 'memory',
            reader: {
                type: 'json',
                root: 'items'
            }
        }
    });
    
    Ext.create('Ext.grid.Panel', {
        title: 'Simpsons',
        store: Ext.data.StoreManager.lookup('simpsonsStore'),
        plugins: [{ptype: "bufferedrenderer"}],
        columns: [
            { text: 'Name',  dataIndex: 'name' },
            { text: 'Email', dataIndex: 'email', flex: 1 },
            { text: 'Phone', dataIndex: 'phone' }
        ],
        height: 200,
        width: 400,
        renderTo: Ext.getBody()
    });
        }
    });
    Solution:

    Code:
       Ext.define("Ext.view.overrideAbstractView", {
            override: "Ext.view.AbstractView", 
    
            refreshView: function() {
                var me = this,
                    blocked = me.blockRefresh || !me.rendered || me.up('[collapsed],[isCollapsingOrExpanding],[hidden]');
                
                if (blocked) {
                    me.refreshNeeded = true;
                    me.deferInitialRefresh = false;
                } else {
                    if (me.bufferedRenderer && me.all.getCount()) {
                        me.bufferedRenderer.refreshView();
                        me.headerCt.setSortState(); // <-- ADD
                    } else {
                        me.refresh();
                    }
                }
            }


    P.S. Forum message editor don't work under chrome. I don't know where this bug must be described.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

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

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Regarding the forum, I haven't experienced a problem using Chrome with the forum. What kind of issue did you experience?

Similar Threads

  1. Replies: 13
    Last Post: 13 Nov 2015, 6:29 AM
  2. [FIXED] Bug with grouped grid headers and Ext.state.Manager
    By dperezfa in forum Ext:Bugs
    Replies: 4
    Last Post: 15 Apr 2014, 6:03 AM
  3. [FNR] Grid sort state not apllied
    By Stephan Stckmann in forum Ext GWT: Bugs (2.x)
    Replies: 4
    Last Post: 22 Jul 2011, 12:25 AM
  4. Replies: 0
    Last Post: 26 Feb 2009, 2:09 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
  •