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

[Solved] Grid Scroll to Last Row

1 Answer 998 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 26 Mar 2015, 05:57 AM
Hi,

I have a kendo grid which fetches data using the .READ method to fetch the data from database and show it on the grid. The grid has a scroll bar. I want to scroll down to the end of the grid, so that the last record is visible on screen.

thanks

Sanjay

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 27 Mar 2015, 07:45 AM

Hello Sanjay,

If the current Grid is not using a virtual scrollbar, you could retrieve the height of the scrollable content in the Grid and scroll to the end.
E.g.

var grid = $("#grid").data("kendoGrid");
var content = grid.content;
content.scrollTop(content[0].scrollHeight);

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or