PDA

View Full Version : Solved: How to prevent grid rowdblclick event firing twice



mrsunshine
23 Jun 2009, 12:44 AM
hi,

i have a grid and defined a event listener for the "rowdblclick" event.
the problem the, the event listener is called twice every time the event is fired.
could be a event bubbling problem.

how can i prevent that the event is fired twice for each doubleclick.



...
this.on(
'rowdblclick',
function(grid,rowIndex,e) {
console.log(rowIndex);
},
this
);
i'm happy for every hint or idea!

thank you

nils

evant
23 Jun 2009, 12:53 AM
Use the buffer option.



...
this.on(
'rowdblclick',
function(grid,rowIndex,e) {
console.log(rowIndex);
},
this, {buffer: 100}
);

mrsunshine
23 Jun 2009, 1:03 AM
dosn't help

should i set the target option? if yes with which value?

mrsunshine
23 Jun 2009, 1:13 AM
i think the problem was that i bind the eventhandler twice to the grid ;-(