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

Using custom scroll on React Grid

3 Answers 908 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Furkan
Top achievements
Rank 1
Veteran
Furkan asked on 18 May 2020, 09:46 AM

Hi,

Can I use custom scroll for kendo react grid.

I want to use this scroll package: https://www.npmjs.com/package/react-custom-scrollbars

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 18 May 2020, 01:39 PM

Hello, Furkan,

The Grid can be used in combination with the react-custom-scrollbars package. It will require disabling the Grid built-in scrolling using the scrollable prop:

https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/#toc-scrollable

This is an example:

https://stackblitz.com/edit/react-chxbah?file=app/main.jsx

Please have in mind that some of the Grid features rely on the Grid built-in scroll like the virtual scrolling and others. This means that the react-custom-scrollbars package could be used with some limitations.

Regards,
Stefan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Furkan
Top achievements
Rank 1
Veteran
answered on 18 May 2020, 09:50 PM

Hi Stefan,

Virtual scrolling is very important for my grid so is there any way to use react-custom-scrollbars with virtual scrolling?

0
Stefan
Telerik team
answered on 19 May 2020, 01:49 PM

Hello, Furkan,

The Grid relies on its scrolling position and other important information to perform the virtual scrolling.

We cannot virtualize the scroll if the scroll is coming from another library. We are attaching event listeners to our scrolling to determine different details about the Grid and the data in order to provide the virtual scrolling experience.

Regards,
Stefan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Furkan
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Furkan
Top achievements
Rank 1
Veteran
Share this question
or