Free Trial Buy Now

Menu - Popup Menu

ID
Country Name
Area
Population
1Argentina277781532300003
2Bolivia10985757300000
3Brazil8511196150400000
4Canada997614726500000
5Chile75694313200000
6Colombia113890733000000
7Cuba11452410600000
8Ecuador45550210600000
9El Salvador208655300000
10Guyana214969800000
Page 1 of 2 (18 items)
Prev
1
2
Next
v
v
v

Description

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.

Version: v2011 vol 2.11
Experience the DevExpress Difference Today
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.