Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#13982 closed defect (duplicate)

DataGrid - wrong calculation of page height

Reported by: iseeyou Owned by: Evan
Priority: high Milestone: 1.7
Component: DojoX Grid Version: 1.6.1
Keywords: DataGrid Cc:
Blocked By: Blocking:


I have grid with more then 300000 rows, i was found that when i scrolled to the end of grid, pages aren't loading. In debug i found (in array this.pageHeights) that height of 13533 page (total page's count is 13999) equal to -10879200.

I fix it by adding following additional checking to function getPageHeight: function(inPageIndex){

var ph = this.pageHeights[inPageIndex]; return (ph !== undefined && ph >= 0 ? ph : this.defaultPageHeight);


Change History (2)

comment:1 Changed 10 years ago by Evan

Resolution: duplicate
Status: newclosed

Thanks, but the fix doesn't seem to work for me in either FF or Chrome, actually it's duplicate with #11446

This is because all browsers have a limitation on div styling height. Basically the height of Grid scroll div is calculated as totoal row num * avg row height. IE7/8 have a relatively smaller limit number so the max number of supported rows is smaller in IE. This issue occurs on all browsers if the total row count is set to larger numbers like 1000000.

One alternative for handling extremely large dataset would be the pagination way in 1.6+

A better solution was also experimented in the GridX incubation project

comment:2 Changed 10 years ago by Evan

Milestone: tbd1.7
Note: See TracTickets for help on using tickets.