I have an array of objects that I want to show in ng-grid. Each row has a boolean property isVisible
. In the ng-grid I want to show only the rows where isVisible
is true. The other rows should be completely hidden.
I have tried using a rowTemplate
and databinding a ng-show
to isVisible
. That hides the content of the row, but leaves the actual row in place, showing an empty row.
I have tried using filterOptions, but can't figure out the correct syntax to do such a filtering. I couldn't find any good documentation on how to set it.
I have even tried modifying the gridTemplate
in the ng-grid source, by trying to add a filter on ng-repeat=\"row in renderedRows\"
, but I haven't gotten that to work either.
I guess I could modify the array itself, by temporarily removing rows, but I would prefer not to do it that way, since I have to be able to show the rows again (It is actually an expander that I'm doing, that should hide/show sub-rows)