I have written a web-application that uses a ListGrid to present the result. The application also contains an export-button to export the client data to a CSV-file. It works really great!
But when the ListGrid contains about 4000 rows it becomes so slow that it web-page stops working. Is there any way to improve the performance? The ListGrid contains 7 columns and has pure text content.
private DSRequest getExportProperties(String name) {
DSRequest req = new DSRequest();
req.setAttribute("exportAs", "csv");
req.setAttribute("exportDisplay", "download");
req.setAttribute("exportFilename", name+".csv");
req.setExportDelimiter(";");
return req;
}
exportButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
listGrid.setExportRawValues(true);
listGrid.exportClientData(getExportProperties("struct"));
}
});
The browsers are Internet Exporer and Google Chrome.
I am using SmartGWT Pro 2.4.