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
WebDataTree TreeNode Right Click Event Handling


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) {


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

//call context menu on another page

args.set_cancel = true;