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

    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.
  2. Plamen
    Admin
    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,
    Plamen
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top