Hi,
According to the documentation, store.count
returns the record count, including group headers and store.originalCount
returns the record count, not including group headers.
However, store.originalCount
is also returning group headers. This can be reproduced by adding the following to this example: https://www.bryntum.com/examples/grid/grouping/
console.log(grid.store.count, grid.store.originalCount);
Notice that both properties return 58 i.e. the number of data rows (50) plus the group headers (8).
Furthermore - we would like to be able to find out how many visible (non-special) records are in the grid i.e. it should not include group headers or filtered out records. Is there a suggested property / method that we can use for this? It seems that even if originalCount was ignoring group headers, that it would still include filtered records. Apologies if this in your documentation, I have looked but have struggled to find anything suitable. this.grid.store.records
also includes the group headers so we can't simply check the size of this.
Many thanks!