-
4 Aug 2010 10:21 AM #1
[FIXED-1179] GridView Hidden Column Problem
[FIXED-1179] GridView Hidden Column Problem
Adding align attribute to a column definition, makes the column visible even when it has hidden attribute set to true.
Example:
Using the "Stateful Array Grid Example" from "ext-3.3-beta1-6976\examples\grid\array-grid.js",
Code:// create the Grid var grid = new Ext.grid.GridPanel({ store: store, columns: [ {id:'company',header: 'Company', width: 160, sortable: true, dataIndex: 'company'},{ header: 'Price', width: 75, sortable: true, renderer: 'usMoney', dataIndex: 'price', hidden: true, align:'left' /* Price should be hidden but it shows up in the grid until you get rid if the align attribute */ }, {header: 'Change', width: 75, sortable: true, renderer: change, dataIndex: 'change'}, {header: '% Change', width: 75, sortable: true, renderer: pctChange, dataIndex: 'pctChange'}, {header: 'Last Updated', width: 85, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}, { xtype: 'actioncolumn', width: 50, items: [{ icon: '../shared/icons/fam/delete.gif', // Use a URL in the icon config handler: function(grid, rowIndex, colIndex) { var rec = store.getAt(rowIndex); alert("Sell " + rec.get('company')); }, tooltip: 'Sell stock' }, { iconCls: 'buy-col', // Or use a class in the iconCls config handler: function(grid, rowIndex, colIndex) { var rec = store.getAt(rowIndex); alert("Buy " + rec.get('company')); }, tooltip: 'Buy stock' }] } ], stripeRows: true, height: 350, width: 600, title: 'Array Grid', // config options for stateful behavior stateful: true, stateId: 'grid' });Last edited by WixSL; 5 Aug 2010 at 5:32 AM. Reason: code re-formated
-
5 Aug 2010 8:27 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
Thank you for the report.
-
5 Aug 2010 2:16 PM #3Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
Thanks, this has been resolved and will form part of 3.3 beta 2
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
-
5 Aug 2010 4:47 PM #4
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FNR] GridView column size problem
By dno in forum Ext GWT: Bugs (2.x)Replies: 11Last Post: 31 Aug 2010, 7:41 AM -
[FIXED-496][3.1] RowEditor showTooltip bug when last column is hidden
By Pada in forum Ext 3.x: BugsReplies: 1Last Post: 27 Jan 2010, 5:44 PM -
[FIXED][2.2.1/3.0rc3] GridView.resolveCell problem
By aappell in forum Ext 3.x: BugsReplies: 3Last Post: 2 Jul 2009, 7:20 AM -
[2.1][DUP][FIXED] GridView columns bodies not resizing with column headers
By jbenetz in forum Ext 2.x: BugsReplies: 4Last Post: 2 Oct 2008, 2:43 PM -
GridView focusRow() does not work if column 0 is hidden
By jarrod in forum Ext 1.x: BugsReplies: 2Last Post: 20 Dec 2006, 6:48 PM


Reply With Quote