MaintainScrollPositionOnPostBack equivalent for UpdatePanel?

E

Ed Murphy

I have an UpdatePanel containing (among other things) a GridView; when
the user changes a grid value, the server recalculates some related
grid values. The problem is that, if the user

a) scrolls down so that field (say) #5 of 10 is in the middle
b) changes field #5 and tabs to field #6

then it changes the scroll position so that field #6 is at the bottom.

I'm explicitly setting focus to #6; if I don't, then it doesn't get
focus at all (presumably a side effect of the quasi-postback).

I've wrapped the relevant portion of the UpdatePanel in a <div> with
max-height and overflow:auto, which at least limits the problem to
affecting a section within the page, rather than the entire page.
 

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,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top