Master Detail AG Grid Table - Dynamic Column Definitions

Hi team,

I am using the masterDetail feature of the AG Grid Table.
For the javascript version, there exist the feature to create the columns of a detail subtable dynamically: JavaScript Grid: Master / Detail - Detail Grids | AG Grid.

I would like to replicate the same behaviour in python Dash. There exist the same feature:
Here is the link to the python dash feature that exists: Master Detail | Dash for Python Documentation | Plotly

But the documentation stops before the dynamic table definition.

Is there a way to still create the columns dynamically? Can we use a custom javascript function maybe? If so, where do we plug it in?

Thanks!

Hello @Nina,

Welcome to the community!

Unfortunately, this isnt available currently. You can open an issue on the repo here: Issues · plotly/dash-ag-grid · GitHub

I think technically you could utilize the detailCellRenderer and pass your configuration there from a custom component that you can build in the window.dashAgGridComponentFunctions namespace.

We havent created a bunch of examples of the Enterprise features yet.

1 Like