Posted 31 August 2020, 1:35 am EST - Updated 3 October 2022, 3:41 pm EST
I have a FlexGrid with allowAddNew=true so there is an extra blank row for new items. When I click on “TopLeft” or hit Ctrl+A or Ctrl+space all rows are selected INCLUDING the blank row for new items.
So even if there are let’s say 3 rows in a FlexGrid grid.selectedRows contains 4 rows, one without a dataItem. But if I select all rows he would expect this to be equal to the existing rows.
Is there a smart way to always exclude the “new row” from the “select all” commands?
The 6 in the picture is grid.selectedRows.length.