Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2115
How to display different context menu's for different kinds of nodes in the UltraTree?
posted

I have an UltraTree for which I need different ContextMenu's for different kinds of TreeNodes.

Currently I managed to create a ContextMenu and assign it to the UltraTree. The questions I have are:

- It seems that when you right click on a Node, that Node isn't selected. Is there a way to select it when it's right clicked? That would make it clear to the user on which node an action is performed. 

- Is there a way to hide certain menuitems or grey them out when the TreeNode is of a certain type?

- Is there a way to not show the ContextMenu at all in case of a certain type of TreeNode?

- If in the MenuItem click event the TreeNode is not passed, how can you get a reference to the TreeNode that was right clicked?

I don't know if it's possible to create a small example showing these things? Or are there examples around (in the installation? Documentation?)?

Kind regards, Lieven Cardoen