Category / Section
How to create control based context menu?
1 min read
The following code snippet illustrates to create control based context menu.
C#
//Set ContextMenu property as ControlSpecific.
Menu1.ContextMenu =EContextMenuType.ControlSpecific;
//Set ContextControlID to the target control ID.
Menu1.ContextControlID = "Calendar1";
VB
'Set ContextMenu property as ControlSpecific.
Menu1.ContextMenu =EContextMenuType.ControlSpecific
'Set ContextControlID to the target control ID.
Menu1.ContextControlID = "Calendar1"