With the use of ui-grid
, I am aiming to retrieve a complete list of all the filtered data rows utilizing the filter function.
In the provided plunker example, I originally had 500 items in the dataset which got filtered down to 61. Now the question is how can I access those 61 entities?
Check out the plnkr example here!
The code snippet below only captures the rows that are visible on the screen:
var _renderedRows = $scope.gridApi.grid.renderContainers.body.renderedRows;
Upon clicking the button at the bottom of the plunkr link, it displays the number of filtered rows, providing us with a count of 14 rather than the actual count of 61. This method is effective when dealing with 14 or fewer filtered entities, as their object details can be accessed from above. However, there doesn't seem to be any direct property in the grid component that exposes the full list of filtered rows.
Considering this, what would be the most efficient way to obtain the complete list of 61 entries so they can be passed into another function for further processing?