Skip to main content

ASPxClientVerticalGrid.BatchEditConfirmShowing Event

Enables you to prevent a batch edit confirmation message from being displayed.

Declaration

BatchEditConfirmShowing: ASPxClientEvent<ASPxClientVerticalGridBatchEditConfirmShowingEventHandler<ASPxClientVerticalGrid>>

Event Data

The BatchEditConfirmShowing event's data class is ASPxClientVerticalGridBatchEditConfirmShowingEventArgs. The following properties provide information specific to this event:

Property Description
cancel Specifies whether to cancel the related action (for example, row edit, export). Inherited from ASPxClientCancelEventArgs.
requestTriggerID Gets the client identifier of an object that initiates a send request.

Remarks

In the batch edit mode, if the GridBatchEditSettings.ShowConfirmOnLosingChanges property is true (the default behavior), a confirmation dialog is displayed when a grid page contains modified values and an end-user tries to send a request, for instance to sort grid data. The BatchEditConfirmShowing event occurs before displaying this confirmation dialog and allows you to cancel its display, if required.

For instance, you may want to prevent the batch edit confirmation dialog from being displayed, if you place the ASPxVerticalGrid into an ASPxCallbackPanel together with other controls (such as ASPxTabControl, ASPxButton, etc.), and some of these controls (but not the ASPxVerticalGrid) initiates the panel update by calling the ASPxCallbackPanel’s client ASPxClientCallbackPanel.PerformCallback method. In this case, you can set a client flag in the initiator control’s client event handler, and then analyze this flag within a handler of the BatchEditConfirmShowing event. In the event handler, you can set the ASPxClientCancelEventArgs.cancel property to true to prevent display of the grid confirmation dialog.

See Also