I'm seeing unexpected column width changes when rerendering a React component that contains an AgGrid.
Repro:
Expected:
Actual:
Is there a way to get columns to retain their width, kind of like suppressScrollOnNewData, but for maintaining column width?
I was having a similar issue. The solution was to not use flex in any column definition. In my case I had flex: 1 in the defaultColDef.
Got it from this answer: https://stackoverflow.com/a/70654209
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With