Hi @davzup89
I’m not sure I understand what’s going on with your code. Could you make a complete minimal example?
You can access the grid api from a clientside callback - you can find an example in this post: Dash AG-Grid: Export Data As Excel - #5 by AnnMarieW
If you are trying to access the grid api from a function defined in the column defs like in your post about custom aggregation functions, it’s available in the params
passed to the function. To see everything that’s available adding :
dagfuncs.customAvgAggFunc = function(params) {
console.log(params)