Because I want my listgrid exported in exactly the format it is seen, and it took a lot of fiddling to get it to dynamically appear in this manner, I am attempting to offer my clients an export function via the following code.
The code seems to work fine when the listgrid has 150 records or less, but anything over that, and it sends the webapp into an unresponsive state, and sometimes never returns. Is there a practical limit to the number of rows I should expect to be able to export? Any ideas?
Code:
exportExcel.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if (detailGrid.getRecords().length > 0) {
detailGrid.exportClientData();
}
}
});