I have an datatable with a pageSize of 10 und 3 columns.
When I perform a search in my webapplication it is performed on servererside an the results are added to my datatable. Therefore I invoke addRow in a for – loop.
When I only get a few results (1000 and lower) everything is fine.
When I get 10.000 results it takes about 2 Minutes to fill the datatable.
On the same webapplication I have an treeGrid. This treeGrid is also filled inside a forloop with the searchresults with addRow. When I get 10.000 results it takes less the 5 seconds.
Is there a way to speed up the datatable or is it a bug? I also tried to use beginUpdate / endUpdate but with no success.
Thank you. I didn’t know that I can give an array to addRow.
Loading the data before initialization of the table isn’t possible in my case, because I initialize an empty table. And after userinteraction I get the items from server.