Check documentation for the latest version 6.0 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){ ... };

Parameters

idstring|numberthe id of the tree item the user clicked on

Example

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

Back to top