You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently filtering rows by adding a hidden property to rows that we want to hide. In the rowHeight prop we set the hidden row's height to 0. So, something like: rowHeight={(index) => (data[index]?.hidden ? 0 : 34)}. This produces the result that we want, but we noticed with larger data sets (around 25,000) rows there are performance issues. Is there are a better way to go about filtering rows? If not, it would be amazing to have this functionality!
The text was updated successfully, but these errors were encountered:
Just poking around, and I haven't used this grid yet (though I have used other similar grids), ... but I would think that you would want to hide rows in the data itself rather than when rendering.
One way to do this, assuming you want to hide arbitrary rows, would be to keep the hidden row indexes or ids in a map and use that map to filter the dataset so that they are not presented to the grid in the first place in getData. Unhiding the rows or even a single row, would be removing it from the hidden rows map and then refreshing the grid. The grid renders so fast that it should appear instantaneous to the end user.
We are currently filtering rows by adding a
hidden
property to rows that we want to hide. In therowHeight
prop we set the hidden row's height to 0. So, something like:rowHeight={(index) => (data[index]?.hidden ? 0 : 34)}
. This produces the result that we want, but we noticed with larger data sets (around 25,000) rows there are performance issues. Is there are a better way to go about filtering rows? If not, it would be amazing to have this functionality!The text was updated successfully, but these errors were encountered: