Scroll to Bottom

1 Answer 56 Views
GridLayout
Eric
Top achievements
Rank 2
Iron
Iron
Eric asked on 15 Mar 2024, 03:30 PM
Is there a way to programmatically force the grid to scroll to the bottom.  I am using the grid to display history, so when they add a new item, i was to force the grid to the last row so show the last item they added.

1 Answer, 1 is accepted

Sort by
0
Hristian Stefanov
Telerik team
answered on 18 Mar 2024, 01:55 PM

Hi Eric,

The scrolling is a browser function, and the browser takes care of it. Therefore, to control that function, you need to use the Javascript method - scrollIntoVew.

I have prepared an example for you in this REPL link. Please run and test it to see the result. In short, the example shows, every time a new item is added, how to target the latest item in the Grid content and scroll to it.

Regards,
Hristian Stefanov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
GridLayout
Asked by
Eric
Top achievements
Rank 2
Iron
Iron
Answers by
Hristian Stefanov
Telerik team
Share this question
or