Skip to main content
Tab

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

[DefaultValue("")]
public string ConfirmOnLosingBatchChanges { get; set; }

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.

    Grid.BatchEditMode - ConfirmOnLeavingSite

  • On callbacks and postbacks. Note that ASPxGridView shows the Confirmation dialog box on callbacks when the KeepChangesOnCallbacks property is disabled.

    Grid.BatchEditMode - ConfirmationMessage

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:

For more information on batch edit mode in a particular control, refer to the following topics:

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.
See Also