Re: How To: make the datalist scroll to the cell being edited?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ollie Riches (ollie.riches_at_phoneanalser.net)
Date: 02/17/05


Date: Thu, 17 Feb 2005 16:28:35 -0000

you can use SmartNavigation to do this. It will persist page scroll position
and page focus between postbacks. Unfortuantely this will only work in IE
browsers. check out

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemWebUIPageClassSmartNavigationTopic.asp

I guess if you want to support non IE browsers you could use an anchor
instead

--
HTH
Ollie Riches
http://www.phoneanalyser.net
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer.  I'm just a programmer
helping programmers.
"Alan Silver" <alan-silver@nospam.thanx> wrote in message
news:60W14iINfLFCFwOI@nospamthankyou.spam...
> Hello,
>
> I have a datalist which I am using to view and modify some data. When
> the user clicks the "edit" link, the appropriate cell is moved into edit
> mode, as specified in the EditTemplate.
>
> The problem is that if the data table is longer than the browser window,
> so the user has to scroll down to see parts of it, then when they are
> taken to edit mode, the page loads and stays at the top of the table.
> They then have to scroll down and find the cell they asked to edit.
>
> Any way to take them straight to the cell? Any other solutions to the
> problem, for example forcing the row containing the cell to be edited to
> the top of the table, etc?
>
> Any suggestions appreciated.
>
> --
> Alan Silver
> (anything added below this line is nothing to do with me)


Relevant Pages

  • Re: How To: make the datalist scroll to the cell being edited?
    ... It will persist page scroll position ... >and page focus between postbacks. ... >I guess if you want to support non IE browsers you could use an anchor ... >> They then have to scroll down and find the cell they asked to edit. ...
    (microsoft.public.dotnet.framework.aspnet)
  • How To: make the datalist scroll to the cell being edited?
    ... the user clicks the "edit" link, the appropriate cell is moved into edit ... taken to edit mode, the page loads and stays at the top of the table. ... They then have to scroll down and find the cell they asked to edit. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: MSHFlexGrid problem
    ... >>I have a MSHFlexGrid that has scroll bars in both directions. ... >> I turn the scrolling off whenever I edit a cell by overlaying the cell ... the edit field stays with the cell and will not scrool off the ...
    (microsoft.public.vb.general.discussion)
  • Re: Insert comment block too small
    ... No you can't scroll a comment box. ... You can resize the Comment cell when you edit it, ... Roger Govier ...
    (microsoft.public.excel.worksheet.functions)
  • Re: MSHFlexGrid problem
    ... >I have a MSHFlexGrid that has scroll bars in both directions. ... > I turn the scrolling off whenever I edit a cell by overlaying the cell ...
    (microsoft.public.vb.general.discussion)