View Full Version : Issues with Buffered grid in Ext-Js 4.1 beta

19 Jan 2012, 11:02 PM

We have infinite scrolling grid.We have been using this in Ext-4.0. We now started testing the same in Ext-js 4.1 beta and have found few issues.

Attached the code. I have commented out the override given to us in Ext-4.0(ticket-4444)

The grid has 1007 pages and the page size is set as 50.

Only first 50 pages in grid show up, if we scroll beyond that nothing gets displayed.

I tried to debug, commented out the start caculation in guaranteeRange method in Ext.date.Store.
line no:47576 in ext-all-debug.js

guaranteeRange: function(start, end, cb, scope) { end = (end > this.totalCount) ? this.totalCount - 1 : end; ......... if (me.rangeSatisfied(start, end)) { ............ me.onGuaranteedRange(); } else { //start = Math.min(Math.max(start - me.numFromEdge - ((me.leadingBufferZone - me.trailingBufferZone) / 2), 0), me.totalCount - me.pageSize); end = start + (me.pageSize - 1); startPage = me.getPageFromRecordIndex(start); endPage = me.getPageFromRecordIndex(end); } ............. },
After this pages showed up in the grid.But I found one more issue.

Currently I have set up the total page as 1007 but 1000/1006 pages show and the remaining ones are empty.
Similarly if total is 521, only 520 show up.But if total 520, it works fine.

Can you please let us know about this.