-
8 Jan 2013 4:01 AM #1
[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
- Chrome
- IE9
- <!DOCTYPE html>
- 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.
- Click the button
- A new column: the header and the "body" cells
- Only the header cell appears, not the "body" cells
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>
-
8 Jan 2013 7:27 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Thanks for the report! I have opened a bug in our bug tracker.
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.


Reply With Quote