Results 1 to 5 of 5

Thread: A stateful Grid with remoteSort will load data twice, and three times with filters

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-10029 in 4.2.3.
  1. #1

    Default A stateful Grid with remoteSort will load data twice, and three times with filters

    REQUIRED INFORMATION
    Ext version tested:
    • Ext 4.2.1
    • Ext 4.2.0
    Browser versions tested against:
    • Chrome
    Description:

    Hi,
    A grid with a stateful option and a remoteSort to true in his ajax store will load the data twice...

    Worst, the ajax will be done three times if there is a filter feature !!!
    It's a very critical bug with a large amount of data.

    Thanks

    Test Case:

    See XHRs in your javascript console here : http://jsfiddle.net/bwXWM/
    And here : http://jsfiddle.net/bwXWM/1/

    *
    EDIT BY SLEMMON
    Issue observed in 4.2 and 4.2.1. Tested OK in 4.1.3.
    Inline test case:
    Code:
    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
    
    
    var grid = Ext.create('Ext.grid.Panel', {
        store: Ext.create('Ext.data.Store', {
            fields: [{
                name: 'Author',
            }],
            autoLoad: true,
            remoteSort: true,
            sorters: [{
                property: 'Author',
                direction: 'ASC'
            }],
            proxy: {
                type: 'ajax',
                url: '/data/json.json',
                reader: {
                    type: 'json',
                }
            }
        }),
        /*features: [{
            ftype: 'filters',
            encode: false,
            local: true
        }],*/
        stateful: true,
        stateId: 'test',
        columns: [{
            text: "Author",
            flex: 1,
            dataIndex: 'Author'
        }],
        renderTo: Ext.getBody(),
        width: 540,
        height: 200
    });
    Last edited by slemmon; 31 May 2013 at 10:50 AM. Reason: filter feature bug : additional test notes

  2. #2
    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.

  3. #3

    Default

    Hi and thanks,
    Do you have any release date of this fix ? In my opinion this bug is very critical, don't you think ?

  4. #4

    Default

    This very critical bug is still present in 4.2.2...

  5. #5

    Default

    FYI, we will stop using extjs for this incredibly lack of responsibility

    Cheers

Posting Permissions

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