telerik / kendo-react

Issue tracker - KendoReact http://www.telerik.com/kendo-react-ui/
https://kendo-react-teal.vercel.app
Other
211 stars 39 forks source link

Grid with Virtual Scrolling and Detail Rows does not scroll to the bottom #1624

Open WissamProgress opened 1 year ago

WissamProgress commented 1 year ago

When enabling virtual scrolling for the Grid, and rendering detail rows, scrolling down makes the Grid rows repeat and it does not allow scrolling to the rows below. bugvirtualscrollwithdetailcomponent.gif https://stackblitz.com/edit/react-qvpst4-cwbqhl?file=app%2Fmain.tsx,app%2Finterfaces.ts

Ticket ID: 1614541

kdikov82 commented 1 year ago

Currently we do not support detail rows with virtual scrolling, because we do not know the height of each detail row and that makes it impossible for the fake scrollbar to have correct height. In order to support detail rows we need to implement detailRowHeight property as in Kendo UI (we have logged issue for this):

WissamProgress commented 1 year ago

Also reported in Ticket ID: 1615941

WissamProgress commented 12 months ago

In order to have Virtual Scrolling work with Detail Rows, it is required to set the detailRowHeight property to the detail component height, the total property to the data length, and pageSize to at least twice the number of visible rows in the Grid:

kdikov82 commented 11 months ago

I am re-opening the issue, because with expanded detail rows, scrolling through the items will randomly jump and skip items: https://stackblitz.com/edit/react-qvpst4-mdxqn2?file=app%2Fmain.tsx

In the above example, the issue can be observed when you scroll down to item with id 17 (it jumps to id 20); 33 to 37