Scrolling: kendo-grid contentScroll

1 Answer 400 Views
Grid
Kaspars
Top achievements
Rank 1
Kaspars asked on 01 Mar 2022, 08:10 PM

Hi.

Simple question about scrolling.

Is there any way to tell what is startRow or endRow for standard scroll? (Not virtual scrolling)

Since there is scrollTo option. Isn't there some way to tell where scroll bar is located?

Failing that is there a way to tell ContentScrollEvent ScrollTop max height?

 

Thanks

Kaspars

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Bechev
Telerik team
answered on 04 Mar 2022, 09:08 AM

Hello Kaspars,

The developer can control the scrolling behavior conditionally by changing the style.maxHeight property (like setting endRow), but there is no mechanism for setting startRow. For more details please check this article:

https://www.telerik.com/kendo-angular-ui/components/grid/scroll-modes/#toc-conditional-scrolling

The scrollTo method internally relies on HTML scrollTop property which scrolls the Grid container to the specified row. The offset is calculated by the number of rendered rows and their rowHeight value which by default is 36px (when the Default theme is used) and the height of the Grid.

I am afraid that the Grid doesn't expose properties that can be used to accomplish the desired behavior.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Kaspars
Top achievements
Rank 1
commented on 04 Mar 2022, 09:44 AM

Thanks for the reply.

At least now I know definitely that there is no such option.

Tags
Grid
Asked by
Kaspars
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or