Posted 25 May 2020, 4:55 pm EST
Hi,
We are sorry but there is no setting for max rows. If you only wish to export top 300 rows, then there are a couple of workarounds to achieve this
First one is to iterate over each row and if the current row will not be exported, then set its visibility to false. After exporting the grid, set the visibility of all the rows to true.
This method is good, but if the number of rows is large, then iterating over each row will downgrade the performance. This workaround should only be used if the rows that need to be exported are not consecutive, which is not the case for you.
Another solution is to select only those rows that need to be exported and while exporting the grid, set the exportMode to wijmo.grid.pdf.ExportMode.Selection. Setting this, will only export the selected rows. Please refer to the sample link below that demonstrates the selection workaround:
https://stackblitz.com/edit/js-qruehj
exportMode: https://www.grapecity.com/wijmo/api/interfaces/wijmo_grid_pdf.iflexgriddrawsettings.html#exportmode
Regards,
Ashwin