PDA

View Full Version : ColumnHeaderGroup with headercontextmenu issue



jack08
21 Jun 2010, 3:22 AM
Hello everybody,

i am just build a grid using the ColumnHeaderGroup extension from the demos and i need to use the headercontextmenu. My Header has two rows.
When using the onHeadercontextmenu event the function fired up has no information which row of the header the event is for. it only gives you the column number and the event itself.

listeners:{
headercontextmenu: function(headerCol, e){
console.log('header context fired');
console.debug(headerCol, e);
}
}

Does anyone how to extend this to get the affected row also?

Thanks anyone for help!

Condor
21 Jun 2010, 3:46 AM
You can use e.getTarget() to locate the row.