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

Grid bumps up if row selected at bottom of grid

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
muhammad toori
Top achievements
Rank 1
muhammad toori asked on 17 Mar 2010, 12:57 AM
Hi

I have a grid which can have 100 rows. If the user clicks the last row or one towards the bottom of the grid, the grid bumps up to the top of the page. The user has to scroll to the bottom of the grid to see the selected row. Is there a way to prevent the grid from jumping back to the top without enabling scrolling. I don't want to add scroll bars to the gird for UI reasons. Kindly let me know if this can be done client side. Currently i can set focus to the row clicked using onRowClick event but that aligns selected row with the bottom of the page instead of being centering the row. 

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 19 Mar 2010, 02:42 PM
Hi Muhammad,

You could try saving the page scroll position. To achieve this please check out the JavaScript example in the following link:
http://www.huntingground.freeserve.co.uk/main/mainfram.htm?../scripts/cookies/scrollpos.htm

I hope this helps.

Regards,
Radoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
muhammad toori
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or