I have a need of filtering the ui-grid data, but not from the native header filters provided by the grid rather on a button click.
So on my Filter
button's listener I filter my original data array and re-assigning the filtered entries to the $scope.gridData
object. I have a reset
button too. On clicking reset I re-assign original data array to $scope.gridData
object.
With this the filtering works fine. However I face a issue when:
The data is filtered using the external Filter
button.
Internal (grid filters) filters are applied on a column.
Data is reset using Reset
button.
On this reset, the grid maintains the entries filtered by the internal filters. However in the row count display the grid shows n-10 out of total items
. The total item here is the count of original data array while the grid currently hold the filtered data.
Is their any way to manually change the grid count display.