Try these links ASP.NET AJAX Maintain Scroll Position from a Partial Page Update http://www.eggheadcafe.com/tutorials/aspnet/7dd57635-0587-42ba-ae73-f52449e653bf/aspnet-ajax-maintain-scr.aspx
Maintain Scroll Position in any Page Element - (No AJAX here) http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx On Thu, Sep 10, 2009 at 2:30 PM, Andrew Badera <[email protected]> wrote: > > Hi all, > > I have a few AJAX gridviews on ASP.NET <http://asp.net/> 3.5 pages. The > client wanted > more feedback when checkboxes are clicked, so I'm semi-forced to > update the updatepanel around the grid to show the new result. (I may > go nuts with jQuery on the clientside ... but I'd prefer to avoid it > and stick with row styling OnRowDatabound. Next project though I > intend to use jQuery and/or ExtJS grids in place of these clunky old > .NET grids!) > > Unfortunately some of these grids are in scrolling divs, so after an > AJAX postback and panel update, the grids scroll back to the top. I > can't seem to make scrollTop or scrollTo work for me on a div element. > > Anyone have any tips or tricks here -- that they are using currently > and they know works for sure? I've googled the heck out of this, I've > used basic JS, I've used relatively simple jQuery stuff ... all to no > avail. > > Also, random question along these lines ... anyone else using jQuery? > I can get show("fast") or hide("slow") etc. to work on some popup > feedback divs, but fadeIn and fadeOut just flick on or off, no fade, > no matter what params I pass. Target browsers are Chrome, Firefox, > IE6/7/8, Safari 3/4. > > Thanks in advance- > ∞ Andy Badera > ∞ +1 518-641-1280 > ∞ This email is: [ ] bloggable [x] ask first [ ] private > ∞ Google me: http://www.google.com/search?q=andrew%20badera >
