Hello,
I’m using Dash AgGrid (with enterprise license modules) and I’m trying to create an AG Grid datatable with row grouping.
As you can see in my screenshot, I’ve created a datatable with different row groupings, and I’ve used a dropdown in the ‘OffSet List’ column.
Currently, I have my dropdown list for all my “KPI” rows, but I want to add the same dropdown list (with other values) to my row groups (in place of “dropdown list here”).
Is this possible? I’ve found things like “aggFunc”: “sum”, but I want a dropdown list instead.
This is my data’s :
Column_def :
column_defs = [
{
"headerName": ProjectOverviewPresenter.columns["project"],
"field": "project",
"rowGroup": True,
"hide": True,
"suppressColumnsToolPanel": True,
},
{
"headerName": ProjectOverviewPresenter.columns["well_type"],
"field": "well_type",
"rowGroup": True,
"hide": True,
"suppressColumnsToolPanel": True,
},
{
"headerName": ProjectOverviewPresenter.columns["section"],
"field": "section",
"rowGroup": True,
"hide": True,
"suppressColumnsToolPanel": True,
},
{
"headerName": ProjectOverviewPresenter.columns["kpi"],
"field": "kpi",
},
{
"headerName": ProjectOverviewPresenter.columns["kpi_min"],
"field": "kpi_min",
},
{
"headerName": ProjectOverviewPresenter.columns["kpi_max"],
"field": "kpi_max",
},
{
"headerName": ProjectOverviewPresenter.columns["kpi_mean"],
"field": "kpi_mean",
},
{
"headerName": ProjectOverviewPresenter.columns["offset_list"],
"field": "offset_list",
"cellEditor": "agSelectCellEditor",
"editable": True,
"cellEditorParams": {"values": [""] + project.offset_list_names},
},
]
Thanks you.