Posted 6 May 2026, 6:17 am EST
We have two Wijmo FlexGrids placed in two UI tabs (Tab 1 and Tab 2), and we want to export both grids into a single Excel file such that:
Tab 1 grid data goes into Worksheet 1 (e.g., “Tab 1” / “Permissions – 1”)
Tab 2 grid data goes into Worksheet 2 (e.g., “Tab 2” / “Permissions – 2”)
We are currently using FlexGridXlsxConverter.saveAsync() for exporting one grid:
wjcGridXlsx.FlexGridXlsxConverter.saveAsync(
this.groupAccessGrid,
{
includeColumnHeaders: true,
includeCellStyles: true,
formatItem: this.exportFormatItem
},
“permissions”
);
Could you please guide us on the best supported approach to achieve the following:
Export two FlexGrids into one Excel workbook with two worksheets.
Is there a supported API like FlexGridXlsxConverter.saveAsync() that supports multiple grids / multiple sheets?
Or should we generate Workbook objects for each grid and then merge worksheets into a single workbook?
We also use formatItem to customize export values/styles.
How can we apply the same formatItem logic for both sheets (Grid in Tab 1 and Grid in Tab 2)?
If merging workbooks is the recommended solution, can you share a reference/sample showing:
how to export Grid 1 → Worksheet 1
export Grid 2 → Worksheet 2
save final workbook as a single .xlsx file
