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

Scrolling a dynamically sized grid

1 Answer 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Doug Lott
Top achievements
Rank 1
Doug Lott asked on 15 Apr 2009, 06:01 PM
We have a grid that fills an area in the middle of a window.  As you add rows to it, the grid grows vertically until it has taken all the space.  At that point when a row is added to it, a scrollbar appears and the newly added row is off page.  We need the grid to scroll automatically downward as each new row is added.  I tried your Scrolling Programmitcally example, but the scroll bar does not follow down the grid.  How do you progammtically scroll to the bottom?

Thanks,

Doug

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 21 Apr 2009, 01:35 PM
Hi Doug Lott,

You can scroll to the bottom of the grid with just a single line. I have attached a sample project that demonstrates how you can control scrolling programatically. The GoToLastRecord method implements the functionality that you require.

All the best,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Doug Lott
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or