From 8dce635873557fd40ca7b6c9cf8dcf78695acd6c Mon Sep 17 00:00:00 2001 From: Remy Le Guen Date: Mon, 6 Jul 2026 09:02:14 +0200 Subject: [PATCH 1/4] add groupAggFiltering as a potential function for the grid options --- src/lib/utils/propCategories.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/utils/propCategories.js b/src/lib/utils/propCategories.js index f0c0bdaf..0262e5e1 100644 --- a/src/lib/utils/propCategories.js +++ b/src/lib/utils/propCategories.js @@ -70,6 +70,7 @@ export const GRID_MAYBE_FUNCTIONS = { isExternalFilterPresent: 1, doesExternalFilterPass: 1, quickFilterParser: 1, + groupAggFiltering: 1, // Integrated Charts getChartToolbarItems: 1, From dd103827ee28368aad422b3d6db614e4429b480c Mon Sep 17 00:00:00 2001 From: Remy Le Guen Date: Mon, 6 Jul 2026 10:47:23 +0200 Subject: [PATCH 2/4] adding test for groupAggFiltering --- tests/test_custom_filter.py | 47 ++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/tests/test_custom_filter.py b/tests/test_custom_filter.py index f86483c9..ed9af8fc 100644 --- a/tests/test_custom_filter.py +++ b/tests/test_custom_filter.py @@ -386,4 +386,49 @@ def test_fi006_custom_filter(dash_duo): # Apply apply_buttons = dash_duo.find_elements('button[data-ref="applyFilterButton"]') apply_buttons[1].click() - grid.wait_for_cell_text(0, 2, "24/08/2008") \ No newline at end of file + grid.wait_for_cell_text(0, 2, "24/08/2008") + + +def test_fi007_custom_filter(dash_duo): + + app = Dash(__name__) + + column_defs = [ + {"field": "country", "rowGroup": True, "hide": True}, + {"field": "year"}, + {"field": "total", "aggFunc": "sum", "filter": "agNumberColumnFilter"}, + ] + + default_col_def = { + "flex": 1, + "floatingFilter": True, + } + + auto_group_column_def = { + "field": "athlete", + } + + app.layout = html.Div( + children=[ + dag.AgGrid( + id="grid", + rowData=df.to_dict("records"), + columnDefs=column_defs, + defaultColDef=default_col_def, + dashGridOptions={ + "groupAggFiltering": {"function": "!!params.node.group"}, + "groupDefaultExpanded": -1, + "autoGroupColumnDef": auto_group_column_def, + }, + enableEnterpriseModules=True, + ) + ], + ) + + dash_duo.start_server(app) + grid = utils.Grid(dash_duo, "grid") + grid.wait_for_cell_text(1, 0, "Michael Phelps") + + grid.set_filter(3, 8) + grid.wait_for_cell_text(0, 3, "8") + \ No newline at end of file From 670323623cc6a2e5b531229874360a1199d31f2b Mon Sep 17 00:00:00 2001 From: Remy Le Guen Date: Mon, 6 Jul 2026 11:18:42 +0200 Subject: [PATCH 3/4] Changelog updated with this pull request --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bfdf95b..e8ac1385 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Links "DE#nnn" prior to version 2.0 point to the Dash Enterprise closed-source D ## [unreleased] ### Added +- [#472](https://github.com/plotly/dash-ag-grid/pull/472) Added support for callback function for the groupAggFiltering options - [#453](https://github.com/plotly/dash-ag-grid/pull/453) Test for changelog entry - [#448](https://github.com/plotly/dash-ag-grid/pull/448) Added support for AG-Charts (split out in v33 of AG Grid). Integrated Charts require enableEnterpriseModules=True, dashChartMode="community" or "enterprise", and dashGridOptions={"enableCharts": True}. - [#455](https://github.com/plotly/dash-ag-grid/pull/455) Added support for dynamic `detailCellRendererParams` in Master/Detail, including dynamic detail-grid column definitions. From 6281b7480005fabd2e3b05bc0c89d335e1bbd223 Mon Sep 17 00:00:00 2001 From: Remy Le Guen Date: Mon, 6 Jul 2026 12:55:32 +0200 Subject: [PATCH 4/4] Reordering the PR in the changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8ac1385..7380f742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,10 @@ Links "DE#nnn" prior to version 2.0 point to the Dash Enterprise closed-source D ## [unreleased] ### Added -- [#472](https://github.com/plotly/dash-ag-grid/pull/472) Added support for callback function for the groupAggFiltering options - [#453](https://github.com/plotly/dash-ag-grid/pull/453) Test for changelog entry - [#448](https://github.com/plotly/dash-ag-grid/pull/448) Added support for AG-Charts (split out in v33 of AG Grid). Integrated Charts require enableEnterpriseModules=True, dashChartMode="community" or "enterprise", and dashGridOptions={"enableCharts": True}. - [#455](https://github.com/plotly/dash-ag-grid/pull/455) Added support for dynamic `detailCellRendererParams` in Master/Detail, including dynamic detail-grid column definitions. +- [#472](https://github.com/plotly/dash-ag-grid/pull/472) Added support for callback function for the groupAggFiltering options ### Changed - [#452](https://github.com/plotly/dash-ag-grid/pull/452)