Skip to main content
Tab

PopupWindow.CloseAction Property

Gets or sets a value that specifies which action forces the popup window to close, if it’s displayed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(WindowCloseAction.Default)]
public WindowCloseAction CloseAction { get; set; }

Property Value

Type Default Description
WindowCloseAction Default

One of the CloseAction enumeration values.

Available values:

Name Description
None

Specifies that a popup window can’t be closed via an end-user interaction, but can be closed programmatically via specific client script methods.

CloseButton

Specifies that a popup window is closed when clicking its close button (if any).

OuterMouseClick

Specifies that a popup window is closed when clicking a mouse button outside the popup window.

MouseOut

Specifies that a popup window is closed when the mouse cursor moves out of it.

Default

Indicates that the close action depends upon the popup control’s ASPxPopupControl.CloseAction property setting.

Remarks

A displayed popup window 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 an individual popup window.

This property setting overrides the ASPxPopupControl.CloseAction property that specifies the close action for all popup windows from the ASPxPopupControl.Windows collection.

See Also