PDA

View Full Version : rowIndex in headerdblclick event?



sjivan
9 Jun 2007, 7:51 AM
The headerdblclick event of Grid states that rowIndex is passed as a parameter. I dont see the relevance of a rowIndex for this event. Can someone explain?

Thanks,
Sanjiv


headerdblclick
public event headerdblclick
Fires when a header cell is double clicked
Subscribers will be called with the following parameters:

* this : Grid
* rowIndex : Number
* columnIndex : Number
* e : Ext.EventObject

sjivan
9 Jun 2007, 7:57 AM
hmm, on examining the source it seems like there are several non functioning events in the Grid like 'headerdblclick', 'rowcontextmenu', 'cellcontextmenu' as they never get fired. I suppose they are going to be implemented eventually. Maybe they can be commented out from the current docs or put in a note there.

jack.slocum
9 Jun 2007, 3:01 PM
hmm, on examining the source it seems like there are several non functioning events in the Grid like 'headerdblclick', 'rowcontextmenu', 'cellcontextmenu' as they never get fired. I suppose they are going to be implemented eventually. Maybe they can be commented out from the current docs or put in a note there.

The docs are incorrect. No rowIndex is included. Please post it in the doc error thread (in bugs).

All the events you mentioned are implemented. They are fired by processEvent().

sjivan
9 Jun 2007, 3:12 PM
I searched through the ext-all-debug.js source of 1.1b1 and only found one occurence of 'headerdblclick' where the event is defined. I'm curious to know how it is being fired. Is 1.1b1 supposed to have this event?

I'll add the rowIndex doc issu eto the doc bug thread.

Thanks,
Sanjiv

splintor
17 Oct 2007, 11:44 AM
I searched through the ext-all-debug.js source of 1.1b1 and only found one occurence of 'headerdblclick' where the event is defined. I'm curious to know how it is being fired. Is 1.1b1 supposed to have this event?


I don't have the 1.1 code handy, but in 2.0 code, the headerdblclick event is fired in the GridPanel#processEvent function, in the following code:


var header = v.findHeaderIndex(t);
if(header !== false){
this.fireEvent("header" + name, this, header, e);
}


That's why searching for "headerdblclick" didn't find it...

splintor