Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
WebDataTree TreeNode Right Click Event Handling
posted

Hi,

I am using WebDataTree with custom context menu not the WebDataMenu. So when I right click on Tree node, I get the custom context menu, but also getting default context menu. See my below JS code for right click on Node. After execute the args.set_cancel = true, the default context menu is being showing.


function nodeClick(tree, args) {

var button = 1;

if (args.get_browserEvent() != null) {

button=parseInt(args.get_browserEvent().button);
}

//right click 
if (button == 2) {

//call context menu on another page
parent.showContextMenu(args);

args.set_cancel = true;
}

}

Parents Reply Children
No Data