Check documentation for the latest version of dhtmlxSuite onBeforeContextMenu DHTMLX Docs

onBeforeContextMenu

called on the right mouse click

boolean onBeforeContextMenu(string id,Event e){ ... };

Parameters

idstringid of item on which right click occurs
eEventnative event object

Returns

booleantrue to trigger the default action, false to block it

Example

myDataView.attachEvent("onBeforeContextMenu", function(id, e){
     // your code here
});

Details

the event is blockable, returning false will block the default action

Back to top