Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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