ASPxPopupMenu.CloseAction Property
Gets or sets a value that specifies which action forces a displayed popup menu to close.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
[DefaultValue(PopupMenuCloseAction.OuterMouseClick)]
public PopupMenuCloseAction CloseAction { get; set; }
Property Value
Type | Default | Description |
---|---|---|
PopupMenuCloseAction | OuterMouseClick | One of the PopupMenuCloseAction enumeration values. |
Available values:
Name | Description |
---|---|
OuterMouseClick | Specifies that a popup menu is closed when clicking a mouse button outside the popup menu. |
MouseOut | Specifies that a popup menu is closed when the mouse cursor moves out of it. |
Remarks
A displayed popup menu may be closed in response to a specific mouse action performed on the client side (such as a mouse click or mouse movement). Use the CloseAction property to specify the precise client action which will hide the popup menu control.
Note that the CloseAction property’s setting only affects the manner in which the root popup menu is closed (the popup menu control itself). Submenus of a popup menu control are always closed when the mouse cursor moves out of them.