I have a functional dash app with a dash_ag_grid on it.
On the latest request for change, I’ve been asked to include some editable fields. From the inputs on those editable fields, there are some additional columns calculated using valueGetters, example:
`
{'headerName': 'Quarter 2',
'children': [
{'headerName': 'Budget','field': 'budget'},
{'headerName': 'Sales','field': 'sales'},
{
'headerName': 'performance',
'field':'performance',
'valueGetter':{"function": "Number(params.data.budget) === 0 ? 1 : 1-
(Number(params.data.sales) / Number(params.data.budget))"},
}
Everything is working properly, the grid itself displays proper values, and calculations are accurate.
The issue is when I try and catch the grid’s data on a callback using
State('dash-ag-grid','rowData')
or
Input('dash-ag-grid','rowData')
The field performance does not exist at all - even if I attempt to reference it directly, it will trigger a "KeyError: 'performance'"
error.