When scrolling quickly in the grid it appear duplicate API request and interrupting scrolling

1 Answer 94 Views
Grid
Tom
Top achievements
Rank 1
Tom asked on 10 Feb 2022, 07:24 AM

When I scrolling quickly in the grid it appear duplicate API request and interrupting scrolling. How can I improve the issue ? please help, thanks!

1.duplicate request

2.interrupting scrolling

 

 

1 Answer, 1 is accepted

Sort by
0
Georgi Denchev
Telerik team
answered on 14 Feb 2022, 11:15 AM

Hi, Tom,

Thank you for the provided details.

This problem has been discussed more extensively in the following forum thread:

https://www.telerik.com/forums/grid-with-remote-virtual-scrolling-fires-mutiple-read-requests-when-scrolling-fast#3389212 

As it has been explained by my colleagues, this behavior is by design. The only workaround is to turn off the prefetching of data, however the downside is that the Grid might appear a bit "laggy" while scrolling.

Workaround:

kendo.ui.VirtualScrollable.fn.options.prefetch = false;
 
$("#grid").kendoGrid({
    scrollable: {
        virtual: true
    }
});

Dojo:

https://dojo.telerik.com/@gdenchev/ALEnitoD 

Best Regards,
Georgi Denchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tom
Top achievements
Rank 1
commented on 08 Apr 2022, 02:38 AM

Just noticed your reply. Thanks!
Tags
Grid
Asked by
Tom
Top achievements
Rank 1
Answers by
Georgi Denchev
Telerik team
Share this question
or