You found a bug! We've classified it as EXTJSIV-8093 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    690
    Vote Rating
    62
    Daniil is a jewel in the rough Daniil is a jewel in the rough Daniil is a jewel in the rough Daniil is a jewel in the rough

      0  

    Default [4.2 b] Store autoLoad false is ignored if groupField is set and remoteSort is true

    [4.2 b] Store autoLoad false is ignored if groupField is set and remoteSort is true


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.2 beta
    Browser versions tested against:
    • Chrome
    • FireFox
    • IE9
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • A Store's autoLoad false setting is ignored if its groupField is set and remoteSort is true.
    Steps to reproduce the problem:
    • Just run the sample
    The result that was expected:
    • No request to load data
    The result that occurs instead:
    • A request to load data occurs
    Test Case:

    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <title>Store autoLoad false</title>
    
        <link rel="stylesheet" href="../resources/css/ext-all.css" />
        
        <script src="../ext-all-debug.js"></script>
    
        <script>
            Ext.onReady(function () {
                Ext.create(Ext.grid.Panel, {
                    renderTo: Ext.getBody(),
                    store: {
                        groupField: "groupId",
                        remoteSort: true,
                        fields: [{
                            name: "groupId"
                        }],
                        proxy: {
                            type: "ajax",
                            url: "some URL"
                        }
                    },
                    columns: {
                        items: [{
                            dataIndex: "groupId",
                            text: "GroupId"
                        }]
                    },
                    features: [{ ftype: "grouping" }]
                });
            });
        </script>
    </head>
    <body>
    
    </body>
    </html>
    Ext.NET - ASP.NET for Ext JS
    MVC and WebForms
    Examples | Twitter

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    436
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    This is due to the store sorting when a group is happening so it's two different things of grouping and autoLoad.

    But we will see what we can do so I have opened a bug in our bug tracker.