Multiple context menu in RadTreeView

5 posts, 1 answers
  1. relper
    relper avatar
    25 posts
    Member since:
    Nov 2007

    Posted 01 Feb 2008 Link to this post

    Is it possible to display one context menu (items a, b, c...) when you click on a node and a different context menu (items x, y, z...) when you click over the empty area of the tree (outside of any nodes)?
    Thanks!
  2. Answer
    Helen
    Admin
    Helen avatar
    1052 posts

    Posted 04 Feb 2008 Link to this post

    Hello,

    Yes, it is possible. Please find attached a sample project how to achieve this. Hope it will be helpful.



    Kind regards,
    Helen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. relper
    relper avatar
    25 posts
    Member since:
    Nov 2007

    Posted 04 Feb 2008 Link to this post

    I forgot to mention I was building everything dynamically but I guess it's just a matter of giving an id to the <div>. I got the idea. Thank you Helen!
  4. roger
    roger avatar
    3 posts
    Member since:
    Sep 2008

    Posted 07 Oct 2008 Link to this post

    Hi,
        I was wondering if you can have different context menus for different nodes, depending on a node's custom attribute field. I have a tree with some nodes that are "folders" and some that are "files". The folders and files should bring up different context menus. Is this possible?

    thx,
    Roger
  5. roger
    roger avatar
    3 posts
    Member since:
    Sep 2008

    Posted 07 Oct 2008 Link to this post


    Nevermind; found the answer on the web samples site: http://demos.telerik.com/aspnet/prometheus/TreeView/Examples/Functionality/ContextMenu/DefaultCS.aspx.

    thanks,
    Roger
Back to Top