You found a bug! We've classified it as EXTJS-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
    974
    Vote Rating
    110
    Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all

      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
    Gainesville, FL
    Posts
    37,047
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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.

Thread Participants: 1