Check documentation for the latest version of dhtmlxSuite onBeforeContextMenu DHTMLX Docs


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


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


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

Back to top