Skip to main content

PopupControlSettings.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.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public bool CloseOnEscape { get; set; }

Property Value

Type Description
Boolean

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 PopupControlSettings.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 applies to all popup windows from the PopupControlSettings.Windows collection. In this case, the CloseOnEscape property’s value can be overridden by using the PopupWindow.CloseOnEscape property of individual windows.

See Also