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

Page Issues When Expanding NestedView

2 Answers 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 20 Apr 2009, 06:57 PM
I have a gid that displays 100 records and opens a details data set when the row is clicked or selected. However the page ALWAYS jumps to the top of the screen when a record is expanded or collapsed cause the user to have to scroll all the way back down to see the expanded details.

Is there a way to fix this other than shortening the number of results displayed on the screen to fit it?  I really want to keep the grid at 100 records...

Thanks.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Apr 2009, 03:59 AM
Hi Shawn,

Try setting the MaintainScrollPositionOnPostBack attribute of the page directive to true as shown below.

ASPX:
 
<%@ Page Language="C#" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeFile="Default.aspx.cs" Inherits="Default" %>  


Thanks
Shinu
0
tgerber
Top achievements
Rank 1
answered on 05 Jan 2010, 07:37 PM
I am using version 2009.2.701.35 and I am also having a problem with the page popping to the top when a nested grid view is opened. I am using the MaintainScrollPositionOnPostBack page directive and it does not seem to help. My grid is on a user control which is in a  RadAjaxPanel so I'm not sure if that seems to make a difference.
Tags
Grid
Asked by
Shawn
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
tgerber
Top achievements
Rank 1
Share this question
or