.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

IModelOptionsWeb.ConfirmUnsavedChanges Property

Specifies whether or not a confirmation dialog is displayed by browser when there are unsaved changes and a user closes the browser tab or clicks an Action whose execution may lead to loss of unsaved data.

Namespace: DevExpress.ExpressApp.Web.SystemModule

Assembly: DevExpress.ExpressApp.Web.v19.2.dll

Declaration

[DefaultValue(true)]
bool ConfirmUnsavedChanges { get; set; }
<DefaultValue(True)>
Property ConfirmUnsavedChanges As Boolean

Property Value

Type Default Description
Boolean

true

true, if a confirmation dialog is enabled; otherwise, false.

Remarks

The following confirmation is displayed by browser when a user attempts to close the browser tab or clicks an Action whose execution may lead to loss of unsaved data.

Action.ConfirmUnsavedChanges

You can disable it using the ConfirmUnsavedChanges property.

ConfirmUnsavedChanges

The ConfirmUnsavedChanges option is global. To enable/disable the confirmation for a specific Action, use the IModelActionWeb.ConfirmUnsavedChanges property of the ActionDesign | Action node.

To modify or localize the "Unsaved changes will be lost. Do you want to proceed?" text, use the Value property of the Localization | Confirmations | Cancel node.

NOTE

Override the SetProcessValueChangedScript method to support ConfirmUnsavedChanges in a custom Property Editor (see WebPropertyEditor).

See Also