View Full Version : Why does the click handler for this action column not work?

14 Apr 2014, 7:37 AM
I created an action column with an icon, and I want to hide the icon if the row being clicked is for the eval license.But the click event handler is not getting called?BTW, why are the code formatting and other forum tools not displayed?xtype: 'actioncolumn',text: 'Actions',align: 'center',width: 110,listeners: [{ getTip: function (v, metadata, rec, row, col, store) { return 'delete ' + rec.get('licenseid'); }, click: function (grid, rowIndex, colIndex, item, event, record, row) { alert('here'); this.fireEvent('LicenseIconClick', grid, record, 'delete'); }}],renderer: function(value, metadata, record){ if(record.get('licenseid') == 'atlas_usx_evaluation') { return "https://www.sencha.com/forum/images/atlas/icons/blue/settings-close-b.png"; }}

14 Apr 2014, 8:54 AM

16 Apr 2014, 9:26 AM
Can you format your code to make it easy for people to read in order to help you?

16 Apr 2014, 10:36 AM
The forum tools were not displaying on that day.