DHTMLX Docs & Samples Explorer

onBeforeContextMenu

Occurs before the moment when a contextual menu appears by a right mouse click.

This event calls user-defined handlers (if there are any) and passes the following parameters:

  • itemId - the id of a tree item the user clicked on;
tree.attachEvent("onBeforeContextMenu", function(itemId){});