Saving Scroll Bar State ASPX DataGrid

  • Thread starter Alan Robbins via .NET 247
  • Start date
A

Alan Robbins via .NET 247

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
 
K

Kilic Beg

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

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top