fin-hypergrid / fin-hypergrid/core

Possible bug with getSelectedRows?

Open
#508 1 comment 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
907
Forks
139
PR merge metrics
No merged PRs in 30d

Description

I believe there is a bug with the select all functionality.
In my table, I have a header row, a top totals row and 14 rows in my data grid.
However, grid.getSelectedRows() returns array(2, ...,13) thus missing rows 14 and 15.
This is related to
``
var rowCount = this.grid.getRowCount() - headerRows;
``
which returns 0 while there is still 2 elements in the data array of the datasource in lib/SelectionModels.js at getSelectedRows.
Because of the header and summary row, it always leave two rows on the table.
I can delete the two remaining rows individually though i.e. when this.areAllRowsSelected() is false.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.