@jinnyzor , I try to do an MRE 
import dash
from dash_ag_grid import AgGrid
app = dash.Dash(__name__)
app.layout = AgGrid(
columnDefs=[
{
"headerName": "well_type",
"field": "well_type",
"rowGroup": True,
"hide": True,
},
{
"headerName": "section",
"field": "section",
},
{
"headerName": "sample_size",
"field": "sample_size",
"valueGetter": {"function": "customSampleSizeValueGetter(params, 'sample_size')"},
},
],
rowData=[
{"well_type": "Perpignan", "section": "Castillet", "well_type_sample_size": 93, "section_sample_size": 3},
{"well_type": "Mende", "section": "Cathedrale", "well_type_sample_size": 93, "section_sample_size": 50},
],
dashGridOptions={
"groupDisplayType": "multipleColumns",
"groupAllowUnbalanced": True,
"groupDefaultExpanded": 1,
},
defaultColDef={
"resizable": True,
"enableRowGroup": True,
"editable": False,
"suppressMovable": True,
"domLayout": "autoHeight",
},
style={"height": "1000px"},
enableEnterpriseModules=True,
licenseKey="x",
)
if __name__ == "__main__":
app.run_server(debug=True)
I have this definition of my AGGRID, on the column “sample_size”, for the row of my “well_type” I want put the “well_type_sample_size” value, for the row of my “section” I want put the “section_sample_size”.
I use function js :
dagfuncs.customOffSetListValueGetter = function (params, val) {
if (params.node) {
if (params.node.field == "well_type") {
return params.node.allLeafChildren[params.node.allLeafChildren.length - 1].data["well_type_offset_list"];
} else if (params.node.field == "section") {
return params.node.allLeafChildren[params.node.allLeafChildren.length - 1].data["section_offset_list"];
}
}
else {
return params.data[val];
}
}
This will work for my well_type because it’s a group but not for my section.
When I look the logs, I find nothing for a not group row :
For conclude, I want this :
Thanks a lot !