I need to create RadContextMenuManager programmatically in a "base" RadForm ( wich is inherited by other Forms Classes).
I don't want to add it with the designer.
It's possible?
If i add a property RadContextMenuManager, i cannot see this.RadContextMenu .
Alessandro
1 Answer, 1 is accepted
1
Dess | Tech Support Engineer, Principal
Telerik team
answered on 09 Sep 2022, 04:48 AM
Hello, Alessandro,
RadContextMenuManager is designed to be used at design time as it affects the Visual Studio Properties section. This component will add a RadContextMenu property to all controls on the form.
If you want to assign a context menu for a control at run time, please refer to the following help article which demonstrates how to achieve it:
but the menu opens ... and if I click outside it doesn't close. And above all: I don't know how to close it. And even if I knew how to close it, I would have to manage a "click outside" context menu event
Thanks Dess, Now I understand. Excuse me, but for a moment I thought it was so "by design", in which case I would not have understood. If it is a known bug then everything is clearer to me.
Thank you. I'll check for updates to see if it gets fixed.