In my extjs grid ‘cutterGrid’ i have a renderer that has the following output
<a href="#" class="myclass">Product 1</a>
on my controller i have the following
'#cutterGrid':{
cellclick :this.onCutterSelectRow
},
This works but, obviously this enables click on the whole row. I just want this on a particular cell.
Here is the field in my grid
{
xtype:'gridcolumn',
dataIndex:'CutterNumber',
text:'Cutter',
renderer: renderCutter,
flex:1,
sortable: true
},
The cellclick event passes several parameters to your function – one of them is EventObject
In your function, you should be able to do this: