columnSize=autoSize not working as expected when using SSRM on Dash AG Grid

I’m using Dash AG Grid with server-side side rendering / SSRM. I’ve attempted to set the columnSize property to autoSize, but it’s still hidding some of the longer values in some columns (even when they’re part of the initial page), which makes me think that it’s figuring out the sizing for each column before all of the data is loaded from the server. Is there a way around this?

Hello @ehansonddh,

Welcome to the community!

columnSize of autoSize is calling the grid api once the columns are visible, regardless of if data is present or not.

I’d recommend adding a button that will trigger this api event for columns once data is populated. You can even use a setTimeout to trigger the api, however, I would be weary of hooking it up to always try this, as you would start messing with user customization. If that matters. :slight_smile:

Thanks @jinnyzor. I had a feeling this might be another instance where server-side support wasn’t as strong as I’d hoped. I’ll give your suggestion a try.

1 Like

It’s a lot harder to work with data that can be varying lengths. If you need to see the data, I’d check out rowHeight and wrapping with maybe a max rowHeight.