Issue
I have an ag-Grid with filtering option.
How to get the number of filtered rows without using forEachNodeAfterFilter
callback?
I want to enable a button only if there is a filtered row, and i don't want to perform a foreach loop in the background every time.
Solution
gridOptions.api.getModel().rootNode.childrenAfterFilter.length
You should check out what else is available to you under rootNode
, there are a few arrays that might be useful to you
Answered By - Jarod Moser
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.