Skip to main content
All docs
V24.1
.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.

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

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.v24.1.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