Skip to main content

ASPxClientGridView.BatchEditChangesPreviewShown Event

Fires after the grid switches to Preview Changes mode.

Declaration

BatchEditChangesPreviewShown: ASPxClientEvent<ASPxClientEventHandler<ASPxClientGridView>>

Event Data

The BatchEditChangesPreviewShown event's data class is ASPxClientEventArgs.

Remarks

The BatchEditChangesPreviewShown event fires after the grid switches to Preview Changes mode.

In Preview Changes mode, ASPxGridView shows modified rows from all grid pages. To support this functionality, the grid keeps changes on callbacks when a user interacts with unsaved modified data (for instance, when a user navigates to another page within the grid or sorts data).

The grid switches to Preview Changes mode in the following cases:

Before the grid switches to Preview Changes mode, it raises the BatchEditChangesPreviewShowing event. In this event handler, you can disable showing the preview.

<dx:ASPxGridView ID="Grid" runat="server" KeyFieldName="CustomerID" ...>
    <!-- ... -->
    <SettingsEditing Mode="Batch" />
    <ClientSideEvents BatchEditChangesPreviewShown="OnBatchEditChangesPreviewShown" />
</dx:ASPxGridView>
function OnBatchEditChangesPreviewShown(s, e) {
    // ...
}
See Also