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
1179
Manipulate attached ContextMenuUltra from grid to which it is attached
posted

Hi,

Not sure this is going to be possible, but...

Within one of our projects we have our own inherited version of the ultragrid with various customisations. It is used exclusively through the project when a grid is needed. Typically when used on forms it will have a context menu attached to it, hosted as part of an ultraToolbarsManager. This is set via the "ContextMenuUltra on...." property. We would like to add a standard menu entry to all of our grids, and ideally this would be handled entirely within the grid, to reduce the impact on the rest of the project. This is what I would like to be able to do, all within our grid class (that inherits from the ultragrid):

1) Look for the attached context menu

2) Dynamically create a new entry at the bottom of that menu

3) Wire an event handler to the new entry so that pressing it can be handled within our grid code

Does that seem possible?

Kevin