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

ContextMenu on treeview nodes

1 Answer 110 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 22 Sep 2008, 04:17 PM
How do you add a RadContextMenu to a node in the treeview?

The RadContextMenuManager allows you to add a RadContextMenu to the RadTreeView control but that only gives you the ability to add a context menu to the whole control regardless of where it is clicked.

The RadTreeNode has a ContextMenu property but it is of type RadDropDownMenu which has previously been said to be obsolete.  Since the RadDropDownMenu is no longer part of the Toolbox, manually changing the RadContextMenu to a RadDropDownMenu allows it to be added to a treeview node but this does not seem to be the correct way to do this. 

radTreeNode1.ContextMenu = radDropDownMenu;

Are there any other ways to do this?

1 Answer, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 25 Sep 2008, 01:30 PM
Hi David,

Indeed, at the moment RadTreeView uses the RadDropDownMenu class for context menus, and you have to manually change the code as you mention.

We are aware of that issue and it is scheduled to be fixed for the Q3 2008 release of RadControls for WinForms.

 
Kind regards,
Jordan
the Telerik team

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