ASPxGridTextSettings.ConfirmOnLosingBatchChanges Property
Specifies the text that the grid control displays within the Confirmation dialog box in batch edit mode.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | The text. |
Remarks
The grid control displays the Confirmation dialog box in the following cases:
A user reloads or leaves the page.
On callbacks and postbacks. Note that ASPxGridView shows the Confirmation dialog box on callbacks when the KeepChangesOnCallbacks property is disabled.
Note
The grid control does not show the Confirmation dialog box after you call the Refresh
method.
The ConfirmOnLosingBatchChanges
property allows you to customize the Confirmation dialog text.
<dx:ASPxGridView ID="ASPxGridView1" runat="server" KeyFieldName="ProductID">
<%--...--%>
<SettingsEditing Mode="Batch" />
<SettingsText ConfirmOnLosingBatchChanges="Custom Confirmation Text" />
</dx:ASPxGridView>
To disable the Confirmation dialog box, use one of the following options:
Set the ShowConfirmOnLosingChanges property to
false
.Set the cancel argument property to
true
in the client-sideBatchEditConfirmShowing
event handler (ASPxClientGridView.BatchEditConfirmShowing, ASPxClientCardView.BatchEditConfirmShowing, ASPxClientVerticalGrid.BatchEditConfirmShowing, ASPxTreeList.BatchEditConfirmShowing).
For more information on batch edit mode in a particular control, refer to the following topics:
- ASPxGridView - Batch Edit Mode
- ASPxCardView - Batch Edit Mode
- ASPxVerticalGrid - Batch Edit Mode
- ASPxTreeList - Batch Edit Mode
Limitation
- For security reasons, browsers display the default Confirmation dialog text when a user leaves the page. For more information, refer to the following topic: BeforeUnloadEvent.