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

Postback grid viewstate

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 02 Jul 2008, 02:24 PM
I have a 4-tier hierarchy grid.  When I click anything that results in a postback, the page resets to the top of the page instead of focusing on where the control was clicked.  I am unsure what settings would need to be changed; any help is appreciated.

1 Answer, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 02 Jul 2008, 06:38 PM
Problem solved.  There wasnt a problem with the radgrid, as the grid itself was not scrolling.  However, there are settings for this under the Rad Grid property Manager->General Settings->Client Settings under scrolling.

My problem was the aspx page itself was not set to maintain scroll position on postback.  This is simple to add to the page tag at the top.
<%@ Page MaintainScrollPositionOnPostback="true" %> 

Tags
Grid
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Share this question
or