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

Multiple context menu in RadTreeView

4 Answers 100 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
relper
Top achievements
Rank 1
relper asked on 02 Feb 2008, 12:03 AM
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!

4 Answers, 1 is accepted

Sort by
0
Accepted
Helen
Telerik team
answered on 04 Feb 2008, 12:57 PM
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
0
relper
Top achievements
Rank 1
answered on 04 Feb 2008, 05:22 PM
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!
0
roger
Top achievements
Rank 1
answered on 07 Oct 2008, 10:00 PM
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
0
roger
Top achievements
Rank 1
answered on 08 Oct 2008, 12:10 AM

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

thanks,
Roger
Tags
TreeView
Asked by
relper
Top achievements
Rank 1
Answers by
Helen
Telerik team
relper
Top achievements
Rank 1
roger
Top achievements
Rank 1
Share this question
or