Skip to main content

ASPxClientGridViewBatchEditApi.GetUpdatedRowIndices Method

Gets the visible indexes of the rows updated on the current page.

Declaration

GetUpdatedRowIndices(): number[]

Returns

Type Description
number[]

Visible indexes of the updated rows.

Remarks

In batch edit mode, call the client-side GetUpdatedRowIndices method to get the visible indexes of the rows updated on the current page.

<dx:ASPxGridView ID="ASPxGridView1" runat="server" KeyFieldName="ProductID">
    <%--...--%>
    <SettingsEditing Mode="Batch" />
    <ClientSideEvents BatchEditChangesSaving="OnBatchEditChangesSaving" />
</dx:ASPxGridView>
function OnBatchEditChangesSaving(s, e) {
    // Get the number of updated rows on the current page
    var updatedRowCount = s.batchEditApi.GetUpdatedRowIndices().length;
    alert(`The number of updated rows on the current page: ${updatedRowCount}.`);
}

To get information about all updated rows in the grid in batch edit mode, use the updatedValues argument property in the BatchEditChangesSaving event handler or call the client-side GetUnsavedChanges method.

For more information on the grid in batch edit mode, refer to the following topic: ASPxGridView - Batch Edit Mode.

See Also