andnessA
Windmill2y ago
5 replies
andness

Get the number of filtered rows when using AgGrid

I'm trying to get the number of filtered rows when using the AgGrid. I've found that this should be available as getAgGrid("myTable").api.getDisplayedRowCount(), but when using this in a templated text it does not update. The problem seems to be that the text component depends on myTable.selectedRows and myTable.result (I also print the total count and the selected count in the same text. But it has no dependency that makes it re-render when the filtering changes.

Is there anything I can do to make it update on filter changes?
Was this page helpful?