Dash AG grid. Hideable columns

Dear community. Im very interesting in the “new” ag grid library. Ive been looking over the documentation. I dont seem to be able to identify any features for enabling toggling columns on/off (show/hide)

Hello @Legenden,

This feature is available by default in Enterprise, however, you have the ability to adjust the columnDef or columnState in a callback. Both of which would allow you to hide or show columns.

Id recommend using the columnState vs columnDefs, as you can use a Patch update and it will adjust the info in place, against the current state of the columns. Plus with a pending PR, changing the columnDefs will not override the columnState.

Or to make things even quicker, you could use a clientside callback.

1 Like