View Full Version : Grid cellclick handler parameters.

22 Aug 2011, 1:03 PM
I am trying to use the cellclick grid event. The only examples I can find are from version 3 and when I try to use it the same way in version 4

myGrid.addListener("cellclick", function(grid,rowIndex,cellIndex,e){
}, this)

When I click a cell, the cellIndex parameter passes the column index of the clicked cell. the rowIndex parameter passes an object.
I do not know how to get the row index.

Has this parameters list changed in v. 4?

22 Aug 2011, 10:55 PM
I don't believe it's documented but the arguments appear to be:

Ext.grid.View view,
HTMLElement cell,
Number cellIndex,
Ext.data.Model record,
HTMLElement row,
Number rowIndex,
Ext.EventObject e