Hi,
I need to download all the data from Datagrid(
paginated and load more ). Now it only downloads the current page rows. Given below code is used for export. Pls help me to download all rows.
Future<void> _exportDataGridToExcel() async {
final Workbook workbook = _key.currentState!.exportToExcelWorkbook();
// print('workbook $workbook');
//final List<int> bytes = workbook.saveAsCSV(','); //workbook.saveAsStream();
final List<int> bytes = workbook.saveAsStream();
workbook.dispose();
//await helper.saveAndLaunchFile(bytes, 'DataGrid.csv');
await helper.saveAndLaunchFile(bytes, 'DataGrid.xlsx');
}
Thanks in advance