-
10 Apr 2008 2:15 AM #1
Document Context Menu
Document Context Menu
Hi,
I show a context menu for grid. But document's context menu appears after grid context menu. I've tried to cancel event bubble but it don't work. What can i do ?
Code:function grid_rowcontextmenu(grid, rowIndex, e){ var xy = e.getXY(); grid.contextMenu=conMenu; document.oncontextmenu = function(){return false;}; grid.contextMenu.showAt(xy); event.cancelBubble=true; document.oncontextmenu = null; }I ♥ S T A N B U L
-
10 Apr 2008 2:17 AM #2
Code:function grid_rowcontextmenu(grid, rowIndex, e){ e.stopEvent(); //whatever }
-
10 Apr 2008 2:42 AM #3
it's worked. thanks alot.
I ♥ S T A N B U L
-
1 Aug 2008 4:31 AM #4
Thanks saved my ass too.. been searching for this for 2 hours


Reply With Quote