Back to Devexpress

ASPxPopupControl.CloseOnEscape Property

aspnet-devexpress-dot-web-dot-aspxpopupcontrol-1390b2ba.md

latest2.1 KB
Original Source

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool CloseOnEscape { get; set; }
vb
<DefaultValue(False)>
Public Property CloseOnEscape As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

CloseOnEscape

Windows

Online Demo: Popup Control - Features

ASPxPopupControl Class

ASPxPopupControl Members

DevExpress.Web Namespace