-
25 Oct 2010 5:39 AM #1
Hide icon in action column for particular row
Hide icon in action column for particular row
Hi,
i used action column in my grid.
i have put 3 icon now for each row..
but now the requirement is I display icon in action columns as per the JSON response for that grid.
Please provide some workaround ASAP.
Thanks
-
25 Oct 2010 5:46 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Write a getClass method for the action item that returns 'x-hide-display' when the icon should not be visible.
-
20 Feb 2013 10:44 AM #3
Try something like
Code:menuDisabled: true, sortable: false, xtype: 'actioncolumn', flex : 2, items: [{ icon : 'resources/images/tradeCancel.png', tooltip: 'Remove', handler: function(grid, rowIndex, colIndex) { var store = Ext.StoreManager.get('TradeAllocations'); var rec = store.getAt(rowIndex); if(rec.data.tradeId == "") { rowEditing.cancelEdit(); store.removeAt(rowIndex); } }, getClass: function(v, meta, rec) { if(rec.data.tradeId != "") { return 'x-hide-display'; } } } ] }
Similar Threads
-
View Action Hide Whens
By aidancooper in forum Ext.nd for Notes/DominoReplies: 1Last Post: 20 Jan 2009, 4:45 PM -
Datagrid: How to hide the column header row?
By ben_dog in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 30 Nov 2008, 2:42 AM -
Icon-only Toolbar using Action-Objects
By lastChill in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 17 Jul 2008, 12:00 AM -
[Solved]change column color of single row(grid column names row)
By amey7p in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 14 Feb 2008, 3:52 AM


Reply With Quote