-
6 Feb 2013 12:38 PM #1
Unanswered: Column hide problem
Unanswered: Column hide problem
I'm using EXT 4.0.7.
I have 1 column (ColumnZ) on my grid that is set initially to hide: true.
When I go through the code in debug, the column's config for hide = true.
Now I use the column header menu to check (unhide) ColumnZ.
In debug, ColumnZ's hide config still stays true.
Doesn't a columns config get updated?
Thanks...
-
6 Feb 2013 4:17 PM #2
Look for hidden: true - or use column's isHidden() method.
-
7 Feb 2013 12:28 AM #3Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 76
- Answers
- 124
Hi,
try following code:
Code:Ext.create('Ext.data.Store', { storeId:'simpsonsStore', fields:['name', 'email', 'phone'], data:{'items':[ { 'name': 'Lisa', "email":"lisa@simpsons.com", "phone":"555-111-1224" }, { 'name': 'Bart', "email":"bart@simpsons.com", "phone":"555-222-1234" }, { 'name': 'Homer', "email":"home@simpsons.com", "phone":"555-222-1244" }, { 'name': 'Marge', "email":"marge@simpsons.com", "phone":"555-222-1254" } ]}, proxy: { type: 'memory', reader: { type: 'json', root: 'items' } } }); Ext.create('Ext.grid.Panel', { title: 'Simpsons', store: Ext.data.StoreManager.lookup('simpsonsStore'), columns: [ { header: 'Name', dataIndex: 'name' }, { header: 'Email', dataIndex: 'email', flex: 1 }, { header: 'Phone', dataIndex: 'phone',hidden:true } ], height: 200, width: 400, renderTo: Ext.getBody() });sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
7 Feb 2013 11:47 AM #4


Reply With Quote