Hi Telerik Team,
We are having some problems with context menus in a radtreeview. I'll try to explain myself. We want to have two different context menus: one in the tree nodes and another different one in the tree view. That's because we want to have actions performed on a tree node (copy, paste, rename...), and different actions performed on the tree (add new nodes to tree.Nodes).
We don't want to have a root node at tree.Nodes where the rest of nodes hang, so that's what we've done so far:
We have a treeview. With a ContextMenuManager we add a context menu to the treeview ('treeviewContextMenu').
Programmaticaly we add nodes to the tree, and we add a different contextmenu to the nodes:
At first we thought it worked but now we want to use this on a different tree where the nodes context menu has only one option while the tree one has many. And now we realized that both context menu are showing! Nodes context menu above tree context menu.
http://img129.imageshack.us/img129/2296/80110580.jpg
What are we doing wrong? Is there a way to do what we need? Could you help us, please?
We are using Q3 2008 version.
Thanks in advance.
Teba.
We are having some problems with context menus in a radtreeview. I'll try to explain myself. We want to have two different context menus: one in the tree nodes and another different one in the tree view. That's because we want to have actions performed on a tree node (copy, paste, rename...), and different actions performed on the tree (add new nodes to tree.Nodes).
We don't want to have a root node at tree.Nodes where the rest of nodes hang, so that's what we've done so far:
We have a treeview. With a ContextMenuManager we add a context menu to the treeview ('treeviewContextMenu').
this.radContextMenuManager1.SetRadContextMenu(this.treeView1,this.radContextMenuTree); |
Programmaticaly we add nodes to the tree, and we add a different contextmenu to the nodes:
RadTreeNode node = new RadTreeNode(); | |
// fill more node properties | |
node.ContextMenu = radContextMenuNodes.DropDown; |
At first we thought it worked but now we want to use this on a different tree where the nodes context menu has only one option while the tree one has many. And now we realized that both context menu are showing! Nodes context menu above tree context menu.
http://img129.imageshack.us/img129/2296/80110580.jpg
What are we doing wrong? Is there a way to do what we need? Could you help us, please?
We are using Q3 2008 version.
Thanks in advance.
Teba.