plotly / dash-ag-grid

Dash AG Grid is a high-performance and highly customizable component that wraps AG Grid, designed for creating rich datagrids.
https://dash.plotly.com/dash-ag-grid
MIT License
165 stars 24 forks source link

[Feature Request] Dynamic Columns for the Master / Detail Grid #296

Open Nina-Mainusch opened 2 months ago

Nina-Mainusch commented 2 months ago

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: Master Detail | Dash for Python Documentation | Plotly

But the documentation stops before the dynamic table definition.

My problem is that if I create a callback to update the detailCellRendererParams manually it does work, but all subtables that are already open will become blank and say "Loading"

Would be so great if that was supported more easily, or an example would be in the documentation.

BSd3v commented 2 months ago

Hello @Nina-Mainusch,

I'll look at how we could implement this.