Dash AG Grid Grand Total Footer Row

I have a dash ag grid which has some columns that can be summed.
How do I show a footer row that displays the sum of the rows?
I don’t prefer using rowGroups because they are all just in the same group and I don’t want to create a dummy group to which every row belongs.
Is there a simple way to do this?

df = pd.DataFrame({"a": ['row1', 'row2', 'row3'], "b": [1, 2, 3], "c": [4, 5, 6]})
grid = dag.AgGrid(
    id='id',
    columnDefs=[{"field": 'a'}, {'field': 'b'}, {'field': 'c'}],
    rowData=df.to_dict('records')
)
# I want to show a total row that shows 6 and 15.

image

Really appreciate the help!

Hi @boscochw

You can try row pinning:

3 Likes