Skip to main content
Tab

ASPxPopupControl.CloseOnEscape Property

Gets or sets a value specifying whether a popup window is closed when an end-user presses the ESC key.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(false)]
public bool CloseOnEscape { get; set; }

Property Value

Type Default Description
Boolean false

true, to close a popup window when the ESC key is pressed; otherwise, false.

Remarks

The CloseOnEscape property specifies whether a popup window is closed when an end-user presses the ESC key.

If the ASPxPopupControl.Windows collection is empty, the CloseOnEscape property is applied to the default popup window. Otherwise, the CloseOnEscape property specifies that the common behavior on an ESC key press apply to all popup windows from the ASPxPopupControl.Windows collection. In this case, the CloseOnEscape property’s value can be overridden by using the PopupWindow.CloseOnEscape property of individual windows.

See Also