primeng icon indicating copy to clipboard operation
primeng copied to clipboard

DataTable virtual scrolling should fetch last partial page [@4.3.0]

Open eugenebuhor opened this issue 9 years ago • 4 comments

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

eugenebuhor avatar Nov 14 '17 11:11 eugenebuhor

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

supermoon123 avatar Nov 15 '17 22:11 supermoon123

Commented at 4428.

cagataycivici avatar Nov 19 '17 19:11 cagataycivici

@cagataycivici , could You please explain the behavior on my plnkr case? Why this doesn't work?

eugenebuhor avatar Nov 19 '17 20:11 eugenebuhor

why would this be default behavior. this is an pagination issue with virtual scroller 100 percent bug.

supermoon123 avatar Nov 20 '17 03:11 supermoon123