Whats the best way to display a popup menu depending on what node is clicked in the UltraTree?
UltraTree has the option of using a ContextMenuStrip or ContextMenuUltra on an UltraToolbarsManager. Ideally I would like to use the UltraToolbarsManager if possible.
At the minute I have a single ContextMenuStrip and I am handling the BeforeSelect event on the UltraTree to determine which items are visible/hidden. I briefly tried using the UltraToolbarsManager I have on the form but it only lets me select one of the main popup menus I have (i.e. File, Edit, Tools, Help). This would be better as I would have a single event where I can check an action being performed on a menu.
I've thought about multiple context menu'sbut that seems too much overhead as there can be common items across all.
Thanks,
Andez
Hello Andez,
Could you please clarify your requirements with more details? Do you want to have different menus for the different nodes?
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Hi there,
Yes, I was wanting to vary the items displayed when I right-click a node in the tree. I am handling this in the MouseUp event.
I was hoping there was a 100% Infragistics way to do this - I am using the Microsoft Context Menu to do this.
But this works for me.
Cheers,
Fine, take your time, I will get back to you in a week or so.
Please feel free to let me know if meanwhile a question about our toolset comes up on your mind.
Hi Boris,
Not had a chance to look at this yet, but will get back to it. Just looking at doing other parts of the system for the prototype but will be revisting this shortly.
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
I believe that there is a 100% Infragistics way to achieve this - with UltraToolbarsManager component as Mike mentioned in his post. Please let me know if you are facing any difficulties.