Check documentation for the latest version of dhtmlxSuite onBeforeContextMenu DHTMLX Docs

onBeforeContextMenu

called on the right mouse click

boolean onBeforeContextMenu(string id,Event e);
idstringid of item on which right click occurs
eEventnative event object
booleantrue to trigger the default action, false to block it

Example

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

Details

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

Back to top