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.
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.