Grid Excel export toolbar on click method:
public toolbarClick = (args: ClickEventArgs) => {
if (this.grid && args.item.id === 'grid_excelexport') {
this.grid.excelExport();
}
}
This was taken from the documentation, except that, args.item.id is 'grid_excelexport' only if the grid id is "grid",
if I don't set grid ID or in the case of a child grid, the grid ID is dynamic and it is not possible to intercept the call.