PDA

View Full Version : Trouble with single and double click event



gerome45
22 Apr 2011, 2:40 AM
Hy everybody,



listeners: {
celldblclick : function(grid, rowIndex, columnIndex, e) {
var contenu = e.target.textContent;
alert ('toto');
//info(contenu,_gml);
},
cellclick : function(grid, rowIndex, columnIndex, e) {
var contenu = e.target.textContent;
alert ('tata');
//clicktableau(contenu,_gml);
}
}


When I click on a cell i have the right alert.
if I double click on a cell, i have the same alert as if i would have made a single click.

I can't see where i have made a mistake, could you help me ?