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.

IModelActionWeb.ConfirmUnsavedChanges Property

Specifies whether or not a confirmation dialog is displayed by a browser when there are unsaved changes and a user executes the current Action.

Namespace: DevExpress.ExpressApp.Web.SystemModule

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

NuGet Package: DevExpress.ExpressApp.Web

Declaration

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

Property Value

Type Default Description
Boolean false

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

Remarks

The following confirmation is displayed by browser when a user clicks an Action whose ConfirmUnsavedChanges property is true.

Action.ConfirmUnsavedChanges

You can change the ConfirmUnsavedChanges value in the Model Editor.

ConfirmUnsavedChanges_Action

By default, the ConfirmUnsavedChanges option is set to true for the following Actions:

  • Cancel
  • ChangeVariant
  • ChooseTheme
  • DialogCancel
  • DialogClose
  • Edit
  • Logoff
  • NextObject
  • New
  • PreviousObject
  • Refresh

These are Actions, whose execution may lead to loss of unsaved data. If you have implemented a custom Action, you can set the ConfirmUnsavedChanges property to true to display a warning dialog before your Action is executed and there are unsaved data modifications in the current View.

To disable confirmations globally, use the IModelOptionsWeb.ConfirmUnsavedChanges property of the Options node, instead.

See Also