ASPxClientGridViewBatchEditApi.GetRowVisibleIndices(includeDeleted) Method

Returns an array of row visible indices.


    includeDeleted: boolean
): number[]


Name Type Description
includeDeleted boolean

true, to include visible indices of deleted rows to the returned array; otherwise, false.


Type Description

An array of integer values that are the visible indices of grid rows.


In the batch edit mode, the ASPxGridView control allows modifying a batch of grid data on the client side and sending it to the server in one request.

Use the GetRowVisibleIndices method to get visible indices of rows that are currently presented on the client side.


The following example illustrates how to use the GetRowVisibleIndices method.

function gridInit(s, e) {
    var batchApi = grid.batchEditApi;
    var visibleIndices = batchApi.GetRowVisibleIndices();

    for (var i = 0; i < visibleIndices.length; i++) {
        var visibleIndex = visibleIndices[i];
        var rateColumn = grid.GetColumn(rateColumnIndex);
        var barColumn = grid.GetColumn(barColumnIndex);
        var barRowValue = batchApi.GetCellValue(visibleIndex, barColumn);
        var rowValue = batchApi.GetCellValue(visibleIndex, rateColumn);
        SetColValue(visibleIndex, rateColumn, rowValue);
        SetBarColValue(visibleIndex, barColumn, barRowValue);
See Also