Hi All,
Is it possible to display a context menu on the grid when I right-click the mouse?
I want to enable some cut, copy, paste functionality if possible and do this with the selected cells. I've looked at the Context Sample, but I'm guessing I need to find the javascript that will get the position on the grid/page to display the popup. So I need to get a reference to the grid by name? Is this possible?
function
UltraWebGrid1_MouseDownHandler(gridName, id, button){}
There are millions of java script files/functions contained in the common scripts folder. I'm browsing through ig_WebGrid.js at the mo. Is there any nice java script viewers?
OK,
Got the context to display with the following javascript, however, the IE context menu is still displayed:
UltraWebGrid1_MouseDownHandler(gridName, id, button){
//Add code to handle your event here.if (button == 2){ var grid = igtbl_getGridById(gridName);
igmenu_showMenu(
'UltraWebMenu1', grid.event);
return true;
}
Any ideas on how to prevent this from displaying?
Inorder to disable the IE context menu, you need to add the following to your page body tag:
<body oncontextmenu="return false">...</body>
Hope this helps.