ASPxClientGridView.BatchEditRowDeleting Event
Occurs on the client side before a data row is deleted in batch edit mode.
Declaration
BatchEditRowDeleting: ASPxClientEvent<ASPxClientGridViewBatchEditRowDeletingEventHandler<ASPxClientGridView>>
Event Data
The BatchEditRowDeleting event's data class is ASPxClientGridViewBatchEditRowDeletingEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
cancel | Gets or sets a value indicating whether the action which raised the event should be canceled. Inherited from ASPxClientCancelEventArgs. |
key | Gets the row’s key. |
rowValues | Gets a hashtable that maintains information about deleted cells. |
visibleIndex | Gets the processed row’s visible index. |
Remarks
The ASPxGridView control allows you to modify a batch of grid data on the client side and send it to the server in a single request.
The BatchEditRowDeleting event occurs when an end-user has clicked the Delete command button. The event argument properties allow you to identify the processed row by its visible index (visibleIndex), and to obtain information about deleted cells (rowValues). To cancel the current operation, set the event parameter’s cancel property to true.
Example
Note
For a full example, refer to ASPxGridView in Batch Edit mode - Implement the Select All feature for the CheckBox column.
The following example illustrates how to use the BatchEditRowDeleting event.
function OnBatchEditRowDeleting(s, e) {
DeletedValue = Grid.batchEditApi.GetCellValue(e.visibleIndex, "Discontinued");
CheckSelectedCellsOnPage("deleteCheck");
}