DataTable virtual scrolling should fetch last partial page [@4.3.0]
I'm submitting a ...
[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Plunkr Case (Bug Reports)
http://plnkr.co/edit/qKGCObKWJzQHt1ci5a0Z?p=preview
Current behavior This issue relates to #4321 issue's last two commentaries of mine. (I suppose this comments were ignored due to #4321 issue's closed status).
In the scenario we have 11 total records. The offset value, to load a new chunk of records, is 10. Scrolling down to the end gives only penultimate chunk of records. It is easy to notice that on the bottom of the scroll the offset is 0 and rows is still 10.
P.S. in my desription 'offset' means 'first' property binding of "DataTable" component
Expected behavior Fetching all partial pages on virtual scrolling.
Minimal reproduction of the problem with instructions The plnkr case shows full reproduction of the bug.
What is the motivation / use case for changing the behavior? Probably updating 'offset' value when the last record + 1 is shown will make a sense. For now 'offset' value updates, but only to the same value until the last value is hidden.
Environment:
- Angular version: 4.4.6
- PrimeNG version: 4.3.0
- Browser: all
- Language: all
- Node version: 8.4.0
I have submitted the true bug to this issue. Vote up the issue to get the issue resolved. https://github.com/primefaces/primeng/issues/4428
Commented at 4428.
@cagataycivici , could You please explain the behavior on my plnkr case? Why this doesn't work?
why would this be default behavior. this is an pagination issue with virtual scroller 100 percent bug.