Saving Scroll Bar State ASPX DataGrid

Discussion in 'ASP .Net Web Controls' started by Alan Robbins via .NET 247, Jun 9, 2004.

  1. I have a page that automatically posts itself back on a userdefined interval. This page is flow layout with traditionaltables and percentage width(s)/height(s).

    In a td is a div with an asp:datagrid with overflow auto to get ascroll bar. The problem is when the page refreshes the scrollbar is always reset to the top. Quite irritating for the users.Surely there is a way to get it to remember the scroll bar'sstate...

    Thanks

    --------------------------------
    From: Alan Robbins

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>SEWazTz6Yk+35UENHSoGZg==</Id>
    Alan Robbins via .NET 247, Jun 9, 2004
    #1
    1. Advertising

  2. Alan Robbins via .NET 247

    fdisk Guest

    Have you tried setting the smartnavigation page directive?

    Alan Robbins via .NET 247 <> wrote in message news:<#>...
    > I have a page that automatically posts itself back on a user
    > defined interval. This page is flow layout with traditional
    > tables and percentage width(s)/height(s).
    >
    > In a td is a div with an asp:datagrid with overflow auto to get a
    > scroll bar. The problem is when the page refreshes the scroll
    > bar is always reset to the top. Quite irritating for the users.
    > Surely there is a way to get it to remember the scroll bar's
    > state...
    >
    > Thanks
    >
    > --------------------------------
    > From: Alan Robbins
    >
    > -----------------------
    > Posted by a user from .NET 247 (http://www.dotnet247.com/)
    >
    > <Id>SEWazTz6Yk+35UENHSoGZg==</Id>
    fdisk, Jun 10, 2004
    #2
    1. Advertising

  3. Alan Robbins via .NET 247

    Kilic Beg Guest

    you should save the location of the scrollbar in Hiddenfield..
    check out this article....
    http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx

    "Alan Robbins via .NET 247" <> wrote in message
    news:%...
    I have a page that automatically posts itself back on a user defined
    interval. This page is flow layout with traditional tables and percentage
    width(s)/height(s).

    In a td is a div with an asp:datagrid with overflow auto to get a scroll
    bar. The problem is when the page refreshes the scroll bar is always reset
    to the top. Quite irritating for the users. Surely there is a way to get
    it to remember the scroll bar's state...

    Thanks

    --------------------------------
    From: Alan Robbins

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>SEWazTz6Yk+35UENHSoGZg==</Id>
    Kilic Beg, Jun 10, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George
    Replies:
    4
    Views:
    484
    George
    Feb 13, 2004
  2. Matt
    Replies:
    0
    Views:
    3,528
  3. John Hann
    Replies:
    0
    Views:
    6,047
    John Hann
    Aug 21, 2004
  4. Matt
    Replies:
    9
    Views:
    70,774
  5. Matt
    Replies:
    9
    Views:
    529
    kaeli
    Aug 23, 2004
Loading...

Share This Page