PDA

View Full Version : How to fire an event after clicking an image inside a cell of a grid?



psewt
1 Mar 2012, 8:57 AM
How to fire an event after clicking an image inside a cell of a grid with row selection model? It will of course fire the default itemclick event, but how to detect that the image was clicked or fire some custom event?

tobiu
1 Mar 2012, 11:16 AM
i would probably stick with the actionColumn class for this usecase:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.column.Action

psewt
2 Mar 2012, 1:26 AM
Thanks,
and now how can I change the icon depending on column value, like in renderer or is there any setIcon() function which can I use during runtime the change to icon?