AG Grid v33.1.0 SSRM: getSelectedRows() / getSelectedNodes() return warnings with header...

Discussão em 'Angular' iniciado por mazinaffan, Abril 9, 2025.

  1. mazinaffan

    mazinaffan Guest

    I'm currently using AG Grid v33.1.0 with the Server-Side Row Model (SSRM)

    Use Case
    I'm trying to retrieve selected rows or nodes using the header checkbox (i.e., "Select All") functionality. However, when I use gridApi.getSelectedRows() or gridApi.getSelectedNodes() after selecting all rows via the header checkbox, I receive a warning.

    This issue did not occur in AG Grid v30.2.0 — the same APIs worked as expected in that version. Is there any workaround to this?

    Individually selecting rows/nodes does allow calling getSelectedRows and getSelectedNodes and returns the array of selected rows/nodes. But not when using header checkbox selection.

    Individually selecting rows or multi-selecting rows — getSelectedRows() and getSelectedNodes() returns correct results in this case.

    Using the grid API’s selectAll() or header checkbox — triggers a warning and doesn't return the selected data. I am expecting to get rows/nodes when using selectAll or header checkbox selection.

    Note this is for Server-Side Row Model (SSRM). I have also gone through the ag-grid documentation, and noted they have introduced new methods such as loadSelectionState saveSelectionState, but this does not contain the selected rows/nodes

    I would like to be able to get rows/nodes when using selectAll or header checkbox selection, as I need to traverse the selection.

    Continue reading...

Compartilhe esta Página