Back to Devexpress

PopupWindow.CloseOnEscape Property

aspnet-devexpress-dot-web-dot-popupwindow-28bc9296.md

latest2.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean CloseOnEscape { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
Public Property CloseOnEscape As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

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

CloseOnEscape

Windows

Online Demo: Popup Control - Features

PopupWindow Class

PopupWindow Members

DevExpress.Web Namespace