About RadTreeView and RadContextMenu

2 posts, 0 answers
  1. yang
    yang avatar
    47 posts
    Member since:
    Oct 2010

    Posted 23 Jan 2013 Link to this post


         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.
  2. Plamen
    Plamen avatar
    132 posts

    Posted 24 Jan 2013 Link to this post

    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,
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top