Disable right click

Hi,

I saw in the examples how to make a custom context menu, but what should I do to just disable the right click which makes the browser context menu appear? I just want that nothing happens, in every part of the tree widget.

regards

Hi,

you may set oncontextmenu event handler for the container where tree is initialized:

tree = new dhtmlXTreeObject(“treecontainer”,“100%”,“100%”,0);

document.getElementById(“treecontainer”).oncontextmenu = function(e){
(e||event).cancelBubble=true; return false;
};