Click here to Skip to main content
15,884,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my application I have a dynamic tree view.
I want to add a context menu to the dynamic tree view using asp.net.

How I can add that, with menu items ADD, EDIT, DELETE
using asp.net

Thanks and Regards
R@v!
Posted
Updated 6-Jan-11 17:31pm
v6
Comments
Sandesh M Patil 6-Jan-11 7:32am    
Edited for better understanding
Dalek Dave 6-Jan-11 7:44am    
Edited for Grammar and Readability.
Dylan Morley 6-Jan-11 7:59am    
Noticed you've edited to say 'not using javascript'

In which case, you'll need to build a user control (like second link in my answer)

However, you'll still need a small amount of script to show the context menu to the user when they right click. This is the expected behaviour and really the only way to achieve it.

You could do something completely client side in script

Something like jQuery + Context menu plugin

http://labs.abeautifulsite.net/projects/js/jquery/contextMenu/demo/[^]

Or you could go the Web Control route

http://msdn.microsoft.com/en-us/magazine/cc163848.aspx[^]
 
Share this answer
 
See below Article
Context Menu on TreeView

Accept the answer if found useful :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900