-
10 Aug 2012 1:16 PM #1
Unanswered: Reconfigure a Grid with Locked columns fails
Unanswered: Reconfigure a Grid with Locked columns fails
Hi,
I'm having a grid reconfigured dynamically. The first column has 'locked: true' and the grid has 'lockable: true' set.
However, during the reconfigure, it fails and gives a
me.reconfigureLockable is not a function error.
This error is generated from within the reconfigure method.
When I look for the 'reconfigureLockable', it's there and the scope also seems correct.Code:reconfigure: function(store, columns) {var me = this, headerCt = me.headerCt;if (me.lockable) { me.reconfigureLockable(store, columns); } else {...
Any suggestions to get this to work will be very helpful.
Thanks in advance.
-
11 Nov 2012 5:59 PM #2
-
12 Nov 2012 1:54 AM #3
Seems to be resolved with the latest version of ExtJs
-
4 Feb 2013 12:00 AM #4
Any method ?
Any method ?
I meet the same problem, the grid column was generated dynamically from server, but I want to set "locked" property to "true" for the first column, it not works.
I tried set grid's property "lockable: true", "enableLocking":"true", but no use.
is there any method to solve it? Thanks for your help.
-
4 Feb 2013 1:45 AM #5
I solved it
I solved it
I add the property "enableLocking: true" outside the initComponent function, it works fine! (first time I add it inside initComponent function, it not works.)
dynamic-grid-locked.pngCode:Ext.define('Ext.ux.grid.DynamicGrid2', { extend: 'Ext.grid.Panel', alias: 'widget.dynamicGrid2', alternateClassName: 'Ext.grid.DynamicGrid2', // URL used for request to the server. Required! url: '', enableLocking: true, // it's important for locking some columns. // lockable: true, initComponent: function() { var me = this; .... // other codes.


Reply With Quote