Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJSIV-8180 in 4.2.0 Sprint 3.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    681
    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.0 beta] Locking Grid: adding column using reconfigure doesn't work

    [4.2.0 beta] Locking Grid: adding column using reconfigure doesn't work


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.2.0 beta
    Browser versions tested against:
    • Chrome
    • IE9
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • If a GridPanel is configured with a column with "locked: true", when adding a new column using the grid's reconfigure method doesn't work well. It adds a header cell, but not the rest cells.
    • Everything is OK if no locked column.
    Steps to reproduce the problem:
    • Click the button
    The result that was expected:
    • A new column: the header and the "body" cells
    The result that occurs instead:
    • Only the header cell appears, not the "body" cells
    Test Case:
    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <title>Grid locked reconfigure add column</title>
    
        <link rel="stylesheet" href="../resources/css/ext-all.css" />
        
        <script src="../ext-all-debug.js"></script>
    
        <script>
            Ext.onReady(function () {
                var myColumns = [{
                    text: "Test1",
                    dataIndex: "test1",
                    locked: true
                }, {
                    text: "Test2",
                    dataIndex: "test2"
                }, {
                    text: "Test3",
                    dataIndex: "test3"
                }];
    
                Ext.create("Ext.button.Button", {
                    renderTo: Ext.getBody(),
                    text: "Add a column",
                    handler: function () {
                        var grid = Ext.getCmp("GridPanel1");
                           
                        myColumns.push({
                            text: "New",
                            dataIndex: "test1"
                        });
    
                        grid.reconfigure(grid.getStore(), myColumns);
                    }
                });
                Ext.create("Ext.grid.Panel", {
                    id: "GridPanel1",
                    renderTo: Ext.getBody(),
                    store: {
                        fields: [{
                            name: "test1"    
                        }, {
                            name: "test2"    
                        }, {
                            name: "test3"    
                        }],
                        data: [{
                            test1: "test1",
                            test2: "test2",
                            test3: "test3"
                        }]
                    },
                    columns: myColumns
                });
            });
        </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,624
    Vote Rating
    434
    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


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