Opened 11 years ago

Closed 11 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 11 years ago by dylan

Milestone: 1.2
Owner: changed from sorvell to Bryan Forbes
Priority: highnormal
severity: majornormal

comment:2 Changed 11 years ago by Bryan Forbes

Is this still an issue with dojox trunk?

comment:3 Changed 11 years ago by Nathan Toone

Resolution: worksforme
Status: newclosed

I'm not seeing performance issues with the latest in trunk. Reopen with a test case, if it still exists.

Note: See TracTickets for help on using tickets.