Check documentation for the latest version of dhtmlxSuite onBeforeContextMenu DHTMLX Docs

onBeforeContextMenu

fires before the moment when a context menu appears on the right mouse click

void onBeforeContextMenu(string|number id);
idstring|numberthe id of the tree item the user clicked on

Example

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

Back to top