select node when right-click in multi-contextmenu treeview

2 posts, 0 answers
  1. Yanling
    Yanling avatar
    15 posts
    Member since:
    Aug 2008

    Posted 02 Oct 2008 Link to this post

    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
  2. Yana
    Admin
    Yana avatar
    4813 posts

    Posted 02 Oct 2008 Link to this post

    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.
Back to Top