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

GridBatchEditSettings.ShowConfirmOnLosingChanges Property

Provides the capability to disable the confirmation message.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool ShowConfirmOnLosingChanges { get; set; }

Property Value

Type Default Description
Boolean **true**

true, to display the confirmation message; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ShowConfirmOnLosingChanges
ASP.NET Controls and MVC Extensions ASPxCardViewEditingSettings
.BatchEditSettings .ShowConfirmOnLosingChanges
ASPxGridViewEditingSettings
.BatchEditSettings .ShowConfirmOnLosingChanges
TreeListSettingsEditing
.BatchEditSettings .ShowConfirmOnLosingChanges
ASPxVerticalGridEditingSettings
.BatchEditSettings .ShowConfirmOnLosingChanges
ASP.NET Bootstrap Controls BootstrapCardViewEditingSettings
.BatchEditSettings .ShowConfirmOnLosingChanges
BootstrapGridViewEditingSettings
.BatchEditSettings .ShowConfirmOnLosingChanges
ASP.NET MVC Extensions MVCxCardViewEditingSettings
.BatchEditSettings .ShowConfirmOnLosingChanges
MVCxGridViewEditingSettings
.BatchEditSettings .ShowConfirmOnLosingChanges
MVCxTreeListSettingsEditing
.BatchEditSettings .ShowConfirmOnLosingChanges
MVCxVerticalGridEditingSettings
.BatchEditSettings .ShowConfirmOnLosingChanges

Remarks

In batch edit mode, the grid control allows modifying a batch of grid data on the client side and sending it to the server in one request. If a grid page contains modified values and an end-user tries to send a callback, for instance, to sort data, the confirmation message is displayed. The end-user can confirm the action and lose the modified data or cancel the action, save changes, and repeat the action.

You can disable the confirmation message by setting the ShowConfirmOnLosingChanges property to false. Note that in this case, unsaved data will be lost on the callbacks without the confirmation. To prevent the dialog display and save end-user changes, you can use the BatchEditConfirmShowing event.

The message text can be specified using the ASPxGridTextSettings.ConfirmOnLosingBatchChanges property.

Note

The confirmation alert cannot be displayed on iOS devices due to their limitations. Safari for mobile devices does not the provide necessary events that can be used for displaying the confirmation message.

See Also