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
When I render a grid with a set of columns, then filter the dataset in a way that keeps some of the existing columns, the remaining columns do not resize to fill the grid.
I'm currently on the 7.0.0-beta40 version.
Likewise, if I replace the data in an existing grid with a dataset that adds columns (in addition to existing column keys) the additional columns are added outside the visible area of the grid (need to scroll right to view them)
I've seen earlier bug reports with variations of this issue - but none with a resolution.
Is there any way to force the data grid to recalculate column widths after a change to the columns array?
Any help is much appreciated.
The text was updated successfully, but these errors were encountered:
I've faced with the same issue. I noticed that changing the grid area causes the column widths to be recalculated. But the grid virtualization excludes columns outside the screen from the width recalculation, so these steps worked for me:
Firstly, I disabled a virtualization for the columns only by making a patch following this comment: #3249 (comment) .
I can't say I 100% understand what my changes led to, but it works pretty well for me now, I haven't noticed any performance issues. I hope this workaround helps you too.
As a workaround, I added the key prop to the grid with the number of columns.
You can of course use any other unique key that will change when you change the columns definition
When I render a grid with a set of columns, then filter the dataset in a way that keeps some of the existing columns, the remaining columns do not resize to fill the grid.
I'm currently on the 7.0.0-beta40 version.
Likewise, if I replace the data in an existing grid with a dataset that adds columns (in addition to existing column keys) the additional columns are added outside the visible area of the grid (need to scroll right to view them)
I've seen earlier bug reports with variations of this issue - but none with a resolution.
Is there any way to force the data grid to recalculate column widths after a change to the columns array?
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: