ASPxClientGridView.batchEditApi Property
Provides access to the batch editing client API.
Declaration
batchEditApi: ASPxClientGridViewBatchEditApi
Property Value
Type | Description |
---|---|
ASPxClientGridViewBatchEditApi | A ASPxClientGridViewBatchEditApi object that exposes the batch editing client API methods. |
Remarks
Note
For a full example, see ASPxGridView - Batch Edit - Cancel editor/row editing in the client FocusedCellChanging event demo.
This example demonstrates different ways to skip or prevent editing certain cells. In this example, the batchEditApi property provides access to the ASPxClientGridViewBatchEditApi.GetCellValue property that is used to get cell value.
function onFocusedCellChanging(s, e) {
if (e.cellInfo.column.name == 'command')
e.cancel = true;
else if (e.cellInfo.column.fieldName == 'SupplierID')
e.cancel = true;
else if (e.cellInfo.column.fieldName == 'UnitsInStock' && (e.cellInfo.rowVisibleIndex < 3 || e.cellInfo.rowVisibleIndex > 7))
e.cancel = true;
else if (e.cellInfo.column.fieldName == 'UnitPrice' && s.batchEditApi.GetCellValue(e.cellInfo.rowVisibleIndex, 'UnitPrice') > 22)
e.cancel = true;
}
Online Examples
Web Forms:
- ASPxGridView - Batch Editing - How to update summaries when HighlightDeletedRows=true
- GridView for Web Forms - How to calculate values dynamically in batch edit mode
- ASPxGridView - Batch Edit - How to calculate unbound column and total summary values on the fly
- ASPxGridView - How to select a checkbox in a row if DataItemTemplate or BatchEdit is used
*
MVC:
See Also