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

save the scroll position on a postback

1 Answer 737 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dawson
Top achievements
Rank 1
Dawson asked on 20 Feb 2014, 12:56 PM
Hi, how to save the scroll position on a postback. ? When scrolling down the radgrid and trying to edit the radgrid is scrolled back to top.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Feb 2014, 01:00 PM
Hi Dawson,

If you want to save scroll position of RadGrid control you can set ClientSettings->Scrolling->SaveScrollPosition property to true. If you mean vertical scroll-bar of the page you can specify MaintainScrollPositionOnPostback="true" in the page directive of the ASPX file.

ASPX:
<%@ Page Language="C#" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" . .  %>
 . . . . .
<ClientSettings>
  <Scrolling AllowScroll="true" SaveScrollPosition="true" />
</ClientSettings>

Thanks,
Princy

Tags
Grid
Asked by
Dawson
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or