Skip to main content
All docs
V23.2
.NET 6.0+
  • The page you are viewing does not exist in the .NET Framework 4.5.2+ platform documentation. This link will take you to the parent topic of the current section.

IModelActionBlazor.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.Blazor.SystemModule

Assembly: DevExpress.ExpressApp.Blazor.v23.2.dll

NuGet Package: DevExpress.ExpressApp.Blazor

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.

See Also