Opened 13 years ago
Closed 13 years ago
#6713 closed enhancement (worksforme)
Grid paging too slow (solution suggestion).
Reported by: | guest | Owned by: | Bryan Forbes |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | DojoX Grid | Version: | 1.1.0 |
Keywords: | Grid paging | Cc: | |
Blocked By: | Blocking: |
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!
Change History (3)
comment:1 Changed 13 years ago by
Milestone: | → 1.2 |
---|---|
Owner: | changed from sorvell to Bryan Forbes |
Priority: | high → normal |
severity: | major → normal |
comment:2 Changed 13 years ago by
comment:3 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I'm not seeing performance issues with the latest in trunk. Reopen with a test case, if it still exists.
Is this still an issue with dojox trunk?