PDA

View Full Version : disable mouse right click



Stephan123
16 Nov 2009, 5:29 AM
Hello !

I have build a grid.
How can i disable the right click with the mouse on a row ?


Your sincerly

Stephan

dlbjr
16 Nov 2009, 6:03 AM
grid.on('rowcontextmenu', function(grid, rowIndex, e) {
//Do what ever
this.stopEvent();
});

Animal
16 Nov 2009, 6:07 AM
Add a contextmenu event listener and call stopEvent in the handler.