Skip to main content
A newer version of this page is available. .

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

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