Skip to main content
A newer version of this page is available. .
Tab

PopupWindow.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.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean CloseOnEscape { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

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

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

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

The value assigned to the CloseOnEscape property of a popup window overrides the value set for the popup control’s ASPxPopupControl.CloseOnEscape property (if any) which specifies that the common behavior on an ESC key press apply to all popup windows from the ASPxPopupControl.Windows collection.

See Also