This is a migrated thread and some comments may be shown as answers.

select node when right-click in multi-contextmenu treeview

1 Answer 89 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Yanling
Top achievements
Rank 1
Yanling asked on 02 Oct 2008, 06:09 AM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 02 Oct 2008, 11:46 AM
Hi Hank,

I tried to reproduce the described issue but to no avail. Could you please create a small sample project which demonstrates the problem and send it to us? You should open a support ticket to be able to attach files. Thanks 

All the best,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Yanling
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or