+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / MaintainScrollBackPositionOnPostback

MaintainScrollBackPositionOnPostback

4 posts, 1 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    23 Feb 2011
    Link to this post
    How do I set the page level property maintain scrollback position on postback?

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    01 Mar 2011
    Link to this post
    Hi Steve,

    Unfortunately there is no such property that you can set through the UI.

    You would have to do this either from the master page or from a control:
    public partial class MyMasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Page.MaintainScrollPositionOnPostBack = true;
        }
    }

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Answered
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    01 Mar 2011
    Link to this post
    Can do...fair enough, thanks Radoslav

    Feature request to set this in the Config editor please though :)
  4. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    25 Apr 2014 in reply to Steve
    Link to this post

    I have a backend page on whom i have a user control

    On user control although i had set  this.Page.MaintainScrollPositionOnPostBack = true; on page load event but it is still not maintaining the scroll position.

    Any idea what's wrong? [I am using Sitefinity 6.3] 

4 posts, 1 answered