PDA

View Full Version : Click item in grid and some action should happen



lioio
27 May 2011, 2:46 AM
Hello!

I'm trying to make ability to edit items(cells) by clicking them in Grid.
I want to have possibility to click ex. ITEM1 and some action should takes place.
I know that I can use renderer, but it returns only string.

Any idea how to do this?

mcadirci
27 May 2011, 5:24 AM
Hello,
Use grid panel's
cellclick (http://dev.sencha.com/deploy/ext-3.3.1/docs/source/GridPanel.html#event-Ext.grid.GridPanel-cellclick) : ( Grid this, Number rowIndex, Number columnIndex, Ext.EventObject e ) event