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

How can I ensure column is visible in viewport?

1 Answer 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata asked on 09 Mar 2011, 11:49 PM
Hi,

I have a grid that contains a lot of columns representing tests.  Each column represents a unique test and the rows have the results for various items on the tests.  The users add tests to grid by dragging them from a list and dropping them on the grid.  This works fine with with a small glitch.  If the user has a lots of columns/tests and the new column is added to the grid the right edge of the screen is not visible in the viewport.  Is there a way I can scroll the screen to the right to ensure this new column in the last column position is visible?

Thanks,

jerry

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 15 Mar 2011, 02:11 PM
Hi Jerry Kurata,

Yo can use the ScrollIntoView and the ScrollIntoViewAsync methods passing them the column as parameter.

Best wishes,
Pavel Pavlov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Jerry Kurata
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or