Hybrid View
-
13 Apr 2012 10:16 AM #1
Locked Grid with Checkbox selection model still doesn't show checkboxes
Locked Grid with Checkbox selection model still doesn't show checkboxes
This fix works for me since 4.0.1
Code:Ext.override(Ext.grid.Lockable, { reconfigureLockable: function(store, columns) { var me = this, lockedGrid = me.lockedGrid, normalGrid = me.normalGrid; if (columns) { Ext.suspendLayouts(); columns = me.processColumns(columns); lockedGrid.setWidth(columns.lockedWidth); lockedGrid.reconfigure(store, columns.locked.items); normalGrid.reconfigure(store, columns.normal.items); Ext.resumeLayouts(true); } if (store) { store = Ext.data.StoreManager.lookup(store); me.store = store; lockedGrid.bindStore(store); normalGrid.bindStore(store); } else { lockedGrid.getView().refresh(); normalGrid.getView().refresh(); } } });
-
16 Apr 2012 8:25 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
4.1.0 RC3 allows it. Kind of hard to show in the picture as in Lion the scrollbars disappear but the Company column is locked.
Screen Shot 2012-04-16 at 11.24.26 AM.pngMitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
16 Apr 2012 8:28 AM #3
reconfigureLockable
reconfigureLockable
Sorry I wasn't specific enough. It will disappear as soon as you call reconfigure.


Reply With Quote