Ticket #6713 (new enhancement)
Grid paging too slow (solution suggestion).
| Reported by: | guest | Owned by: | BryanForbes |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | DojoX Grid | Version: | 1.1.0 |
| Severity: | normal | Keywords: | Grid paging |
| Cc: |
Description
Hi!
The paging is too slow when managing big sets of rows. We've been digging a bit and found a possible solution. The problem is that, even when it's loading a new page, the scroller resizes the page as many times as lines in the page, when it would be enough doing it once the page is loaded. We've done this change to the scroller:
rowHeightChanged: function(inRowIndex){ //Only at the end of the page.
if (Math.floor(inRowIndex / this.rowsPerPage) != Math.floor((inRowIndex + 1) / this.rowsPerPage)) {
this.updatePageHeight(Math.floor(inRowIndex / this.rowsPerPage));
}
}
We know that this will screw it up when one row changes it height, but we don't have that problem. Maybe you should work it out. The performance improvement is huge.
Best regards!