To associate a popup menu with a specific web control, use the menu's PopupElementID property.
A popup menu is invoked automatically when a specific action defined by the menu's PopupAction property is performed within the
associated web control (the default action is a right mouse click).
This example demonstrates how the ASPxPopupMenu control can be linked to the ImgButton1 web control via the PopupElementID property.
The popup menu is displayed by a specific action (a left or right mouse click or mouse hovering) which can be selected within the PopupAction
dropdown editor that sets the menu's PopupAction property. The menu's precise display position with respect to the associated ImgButton1
web control can be defined by the HorizontalAlign and VerticalAlign comboboxes that control the values of the menu's
PopupHorizontalAlign and PopupVerticalAlign properties, respectively. Additionally, the PopupHorizontalOffset and
PopupVerticalOffset properties of the popup menu can be used to specify the menu's horizontal and vertical offsets relative to the linked
ImgButton1 control.
If the menu's EnableClientSideAPI property is set to true, the popup menu can also be invoked programmatically via a call to the client-side
ShowAtPos(x, y) or Show() method. In this demo, the ShowAtPos(x, y) method is used to display the ASPxPopupMenu control
over the GridView1 web control in response to a right mouse click instead of a client browser's standard context menu.
Note that in this sample, the checked state behavior of menu items is used. It is defined by setting the GroupName property of each menu
item to the same Sort value.
Note that the use/operation of the ASPxPopupMenu control is identical to that of the ASPxMenu control.