[quote="hagay"]What do you mean i cannot add/remove items at runtime?
Yes, you cannot add/remove context menu items at client-side. You can only change menu items properties.
[quote="hagay"]
Can you please advise how can i add DYNAMIC context?
Lets take example of a bookstore tree constructed from XML:
http://samples.gotdotnet.com/quickstart/util/srcctrlwin.aspx?path=/quickstart/howto/samples/Xml/StreamXmlDocument/cs/&file=books.xmlI have many node types like- Bookstore, book, author, price etc.
for each one of the node types i need to add or remove context menu items at runtime.
Examples for different functionalities:
1) bookstore: Close bookstore
2) book: Change Cover
3) Price: Make discount
etc.
its a different context for each node.
The only way is to have multiple context menu instances on your page (for every node type).
1. I want to make the changes at runtime!