how to scroll the grid table by codes

1 Answer 17 Views
Grid
David
Top achievements
Rank 1
Iron
Iron
David asked on 07 Jul 2025, 01:51 PM

hi,

i am looking the below topic:

https://www.telerik.com/kendo-angular-ui/components/grid/scroll-modes/virtual

the web page says :

While the user is scrolling the table, the Angular Grid requests and displays only the visible pages. 

my question is:

how to scroll the table by codes?

for example ,i want to scroll the table making the data which id is 10254 visiable,

please tell me how to do this

thank you.

 

 

David
Top achievements
Rank 1
Iron
Iron
commented on 08 Jul 2025, 04:56 AM

hi 

any update of this question?

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 10 Jul 2025, 08:15 AM

Hi David,

When using the virtual scrolling feature, the selected row might not be available in the DOM. Generally, the virtual scrolling mechanism reuses and replaces the rendered TR and TD elements under the hood with the next or previous portion of data while scrolling. This is the main purpose of the feature in order to optimize the scrolling performance in case of large datasets. 

However, the built-in scrollTo method can scroll to a row that is not currently visible in the DOM:

https://www.telerik.com/kendo-angular-ui/components/grid/scroll-modes#scrolling-to-a-specific-row-and-column

Here is a demo showing the method in action.

https://stackblitz.com/edit/angular-pm29f1kv

Let me know in case of any follow-up questions.

Regards,
Martin Bechev
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.

David
Top achievements
Rank 1
Iron
Iron
commented on 10 Jul 2025, 12:39 PM

the api is very cool.

thank you very much.

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