I m working with ag grid react, I have done row group. Now Parent row showing child row counts with numeric values. Is there any function to customise row count style.
And I want to calculate rows count based on children rows cell values.
I’m new working with ag grid. Can anyone have solution about my issue.
2
Answers
You can modify the group header count by using
There are multiple options available for cellRendererParams, If you intend to change the design then use
innerRenderer
incellRendererParams
Adding the url link and example
Ag grid doc: https://www.ag-grid.com/react-data-grid/group-cell-renderer
DEMO: https://plnkr.co/edit/WXykbAkY5iOK1FDp?open=index.jsx
-Help 🙂
I think this is exactly what you are looking for
https://www.ag-grid.com/examples/grouping-group-rows/full-width-groups-rendering/modules/reactFunctional/index.html
Basically you are going to suppress group count and use a custom renderer
index.js
and define your GroupRowInnerRenderer
groupRowInnerRenderer.jsx
You can read more here https://www.ag-grid.com/react-data-grid/grouping-group-rows/#configuring-group-cell-renderer