Kendo-angular: Virtual scrolling triggers lots of refreshes when scrolling

Created on 19 Jan 2017  路  5Comments  路  Source: telerik/kendo-angular

When virtual scrolling a grid with huge amounts of data, Grid will trigger lots of refreshes. Would be great to refresh only when scrolling is over, or add a debounce.
We are working with 100.000+ rows, and this is triggering lots of webservice calls thus lots of database queries. I've tried cancelling the previous request when a new one is triggered, but it's still a lot of requests gone to the server. I guess I could try debouncing it on my side, but I think it should be managed by the Grid component.
vscroll

Or actually, is there a way maybe with an other scroll mode to have the scrollbar cover only the downloaded elements, and add more when I scroll all the way down, while keeping the first elements displayed? Like in a facebook/twitter feed, typically.

All 5 comments

We used to do debounce scrolling before, but decided against it in later versions.

@rkonstantinov can correct me, but I think the reason was that it created unacceptable lags when working with local data. You can still debounce the pageChange event to the desired rate. This is pretty straight-forward as EventEmitters are Subjects. See this snippet for an example. We'll add it to the docs as well.

Indeed that is correct. We decided that it is up to the consumer to decide if the debounce is required, providing more control based on the scenario at hand.

You can close this btw.

In the end we're not going to use virtual scrolling anyway. Classic pagination for now. What we could use is infinite scrolling (facebook-like), is something like this planned in the future of kendo-angular, or shall we work on a custom solution?

This is my observation with virtual scrolling as well - it's cool for demos, but its usability leaves a lot to be desired.

Please, file a request for endless scrolling on our UserVoice portal if you have minute.
This will help us gauge the overall interest and prioritize.

Thanks, I've done so. Would be a great feature, and probably quick to dev given it's close to virtual scrolling in behavior.

http://kendoui-feedback.telerik.com/forums/555517-kendo-ui-for-angular-2-feedback/suggestions/17816359-infinite-scrolling-for-grid

Was this page helpful?
0 / 5 - 0 ratings