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

About RadTreeView and RadContextMenu

1 Answer 61 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
yang
Top achievements
Rank 1
yang asked on 23 Jan 2013, 01:36 PM
Hi,Telerik

     My  RadTreeView is customize . And RadTreeView associated with  RadTreeView .Now,I want  to Click RadContextMenu's  "Add Node"  enevt  at  the end of RadTreeView 's nodes  add  an node. Please let me konw how to do.
 

Thanks very much.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 24 Jan 2013, 03:15 PM
Hi Yang,

Thank you for writing.

The default context menu is not enabled by default and if you right-click a node, it will not appear on the screen. In order to enable it, you should set the AllowDefaultContextMenu property to true. To enable the New item, you should set the AllowAdd property to true:
this.radTreeView1.AllowDefaultContextMenu = true;
this.radTreeView1.AllowAdd = true;

All the other items are disabled and here you will see how to enable them.

I hope this helps.

Kind regards,
Plamen
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
ContextMenu
Asked by
yang
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or