Results 1 to 4 of 4

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

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,018

    Default [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>
    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    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.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    10

    Default

    Still not fixed in 6.0.1?

  4. #4
    Sencha Premium User
    Join Date
    Nov 2013
    Location
    Piacenza, Italy
    Posts
    220

    Default

    It seems the same bug reported for Ext JS 6.0.1 here:
    EXTJS-19781
    remoteSort trigger an autoLoad ? (ExtJS 6.0.1)

    https://www.sencha.com/forum/showthr...-(ExtJS-6.0.1)

Posting Permissions

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