Reputation: 65
i have multiple ag grids running under foreach loop , i want to perform excel export and all the data from multiple grids should be exported into single excel within the single sheet. Can someone help me on that . Any help on this will be helpful
Upvotes: 0
Views: 1328
Reputation: 198
Not sure that I understand your use case:
const gridOptions: GridOptions = {
columnDefs, // shared column defs
rowData, // aggregated data from all grid instances
};
const grid = new Grid(document.createElement('div'), gridOptions);
gridOptions.api.exportDataAsExcel({
sheetName: 'Sheet 1',
fileName: fileName,
});
grid.destroy();
Upvotes: 1