Hi,
I want to select the node when I right click on the node (to show the contextmenu). Then I use the following javascript code to achieve this:
function onClientContextMenuShowing(sender, args)
{
var treeNode = args.get_node();
treeNode.set_selected(true);
}
It works fine when I have only one contextmenu for the treeview. But when I using the code on a RadTreeView with two contextmenu, it does not work.
Could anyone tell me how to solve the problem?
Thank you!
Hank
I want to select the node when I right click on the node (to show the contextmenu). Then I use the following javascript code to achieve this:
function onClientContextMenuShowing(sender, args)
{
var treeNode = args.get_node();
treeNode.set_selected(true);
}
It works fine when I have only one contextmenu for the treeview. But when I using the code on a RadTreeView with two contextmenu, it does not work.
Could anyone tell me how to solve the problem?
Thank you!
Hank