Hello,
I've built a context menu that appears when a row in my Ultragrid is right clicked on. I then built a sub menu for a couple of items. All this works great, however, when the submenu appears, the main menu disappears. Is there a way to get the main menu to stay when the sub menu appears?
Doug,
Are you using the UltraToolbarsManager to create the menu and submenu? If you are dynamically creating the UltraToolbarsManager, are you setting the DockWithinContainer property? If not, does setting this correct the behavior?
Please provide more details about how the context menu is being set up as this will help understand what may be happening.
Hi Alan,
I create the UltraToolbarsManager control via the GUI, but I am dynamically building the menus and attaching them to the manager via code. The DockWithContianer property is set.
I have included my code - but it is in a language known as Progress (or OpenEdge). I'm not sure how familiar you are with that language. Let me know if I need to explain anything in the code. But basically, the main menu is built via the BuildContextMenu and the sub-,menu's are build in the last three lines of that method (BuildMoveSubMenu, BuildReorderSubMenu, BuildPhysicianSubMenu). The menu is then called within the tmToolbars_ToolClick trigger. When the submenu's are called (check out any part of the OTHERWISE piece of the tmToolbars_ToolClick trigger, the main menu disappears).
Thanks Alan!