S
snesbit
I have a static ContextMenu already built and it works.
I am trying to add a submenu (right arrow with a new menuitem list) dynamically when the popup is created.
The new set of menuitems requires some DB queries to be done and then the menuitems to be added to the Menuitems collection of an existing menuitem
This operation is sensitive to the record that the user has right clicked, so this dynamic sublist of actions can be different each time the user right clicks.
However while I get the context menu every time the user right clicks, the dynamically generated submenu only displays once per execution of the application.
Someone must have done this before.....Please Help.....Frustrated..
I have tried to clear the menuitems for the dynamic menuitems collection on the dispose of the popup event, but dispose is not called and there is not an event that tells me when this menu is no longer displayed.
argghhkd#&#&#&#
I am trying to add a submenu (right arrow with a new menuitem list) dynamically when the popup is created.
The new set of menuitems requires some DB queries to be done and then the menuitems to be added to the Menuitems collection of an existing menuitem
This operation is sensitive to the record that the user has right clicked, so this dynamic sublist of actions can be different each time the user right clicks.
However while I get the context menu every time the user right clicks, the dynamically generated submenu only displays once per execution of the application.
Someone must have done this before.....Please Help.....Frustrated..
I have tried to clear the menuitems for the dynamic menuitems collection on the dispose of the popup event, but dispose is not called and there is not an event that tells me when this menu is no longer displayed.
argghhkd#&#&#&#