Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtuaScroll option to work as DataScroller #3845

Closed
GuzzoLM opened this issue Sep 5, 2017 · 3 comments
Closed

VirtuaScroll option to work as DataScroller #3845

GuzzoLM opened this issue Sep 5, 2017 · 3 comments

Comments

@GuzzoLM
Copy link
Contributor

GuzzoLM commented Sep 5, 2017

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] 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

Current behavior
DataTable VirtuallScroll works pretty much like a paginator: Scroll down and you see the next page, scroll up and you see previous page.
This behaviour seems odd to me, because if I scroll down and then scroll up, I'll be sending a request to my backend to fetch data that already have been fetched befor.
Is there a way to change this behaviour?

Expected behavior
I expected DataTable VirtualScroll to behave like the DataScroller.

What is the motivation / use case for changing the behavior?
The whole point of using a VirtualScroll is to avoid pagination and data loading every time a change page occurs. With the current behavior, VirtualScroll miss this point.
So it would be nice if there was an option to change this behaviour to one that works more like the DataScroller.

  • PrimeNG version: 4.1.3
  • Browser: [all]
@FLNacif
Copy link

FLNacif commented Sep 5, 2017

I'm needing the same feature!

@adrianabreu
Copy link

I need this feature too, I'm trying to play with the datatable behaviour, but it will trigger the change detector too many times

@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Oct 20, 2017
@cagataycivici cagataycivici self-assigned this Nov 13, 2018
@cagataycivici cagataycivici modified the milestone: 7.0.0-rc.1 Nov 13, 2018
@cagataycivici cagataycivici removed the Type: New Feature Issue contains a new feature or new component request label Nov 14, 2018
@cagataycivici cagataycivici removed their assignment Nov 14, 2018
@cagataycivici
Copy link
Member

We have a new component for virtual scroll;

#6869

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants