This is a migrated thread and some comments may be shown as answers.

Virtual Scrolling don't move smoothly

2 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shinji
Top achievements
Rank 1
Shinji asked on 14 Aug 2016, 02:01 PM

I use Kendo UI Grid configured the scrollable->virtual option.

But, the virtual scrolling don't move smoothly when the pageSize is 400.

If the pageSize is 20, the virtual scrolling moves smoothly.

What relates to the pageSize? (my PC's spec?)

I want to configure the pageSize by large number if possible.

 

Also, the below warning in my browser console displayed when I scrolled.

Does this warning relate to the above problem?

Handling of 'mousewheel' input event was delayed for 239 ms due to main thread being busy. Consider marking event handler as 'passive' to make the page more responive

2 Answers, 1 is accepted

Sort by
0
Shinji
Top achievements
Rank 1
answered on 14 Aug 2016, 02:05 PM

sample code is here

http://dojo.telerik.com/eDinu

0
Dimo
Telerik team
answered on 17 Aug 2016, 07:43 AM
Hello Shinji,

Virtual Grid scrolling is similar to paging in terms that it only renders a portion on the total item count. When the Grid is scrolled, it renders the items, which belong to the reached "page". The rate and rendering performance of this process depend on the following:

- page size
- Grid height
- scrolling speed
- total number of items

In the provided test page, the page size and the total number of items are large, while the Grid height is relatively small for such a page size and total item count. As a result, the Grid table is re-rendered rather frequently during fast scrolling, which leads to the observed lack of smoothness.

Please consider reducing the page size and possibly, increasing the Grid height (but not beyond the screen height).

Regards,
Dimo
Telerik by Progress
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
Grid
Asked by
Shinji
Top achievements
Rank 1
Answers by
Shinji
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or