Skip to main content
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET 6.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.v24.1.dll

NuGet Package: DevExpress.ExpressApp.Web

Declaration

[DefaultValue(true)]
bool ConfirmUnsavedChanges { get; set; }

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