Dash Ag Grid - Responsive Size to Fit with Sidebar

When using sidebar and responsive size to fit closing the sidebar doesn’t resize the columns leaving a blank space to the side. Is this a feature or a bug and is there anyway round this?

Hello @RConvex,

In lieu of using responsiveSizeToFit, I’d recommend instead using flex in your column defs, and leave the size as default.

This should react to any number of changes to your grid, it also allows you to alter the columns to be different chunks of the available space by using 1, 2, to any number. Where 1 represents 1 chunk, and 2 being 2 chunks, and so on.

Thank you @jinnyzor, will have a play!

1 Like