473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Resuming scroll position

Hi,

I have placed a DataList control inside a panel control to obtain a
scrollable list using the overflow:auto attribute. The rows in the data list
contains and edit LinkButton to enable editing of the selected row via
postback.
My problem is that if i click on the edit button of a row which is not
immidiately visible in the scrollable list than i have to scroll down to
find the row to be edited. Is there a way to resume the scroll position??

regards,
Nov 19 '05 #1
4 1854
hi
check out smartnavigation option for the page.
--
The best
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi,

I have placed a DataList control inside a panel control to obtain a
scrollable list using the overflow:auto attribute. The rows in the data list
contains and edit LinkButton to enable editing of the selected row via
postback.
My problem is that if i click on the edit button of a row which is not
immidiately visible in the scrollable list than i have to scroll down to
find the row to be edited. Is there a way to resume the scroll position??

regards,

Nov 19 '05 #2
Hi!

thanks.

However, I'm trying to resume the scroll position of a region (DIV -
Asp:Panel) of the page, apparently the smartNavigation does not do that :(

any more ideas please?

regards,
"srini" <sr***@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
hi
check out smartnavigation option for the page.
--
The best
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi,

I have placed a DataList control inside a panel control to obtain a
scrollable list using the overflow:auto attribute. The rows in the data
list
contains and edit LinkButton to enable editing of the selected row via
postback.
My problem is that if i click on the edit button of a row which is not
immidiately visible in the scrollable list than i have to scroll down to
find the row to be edited. Is there a way to resume the scroll position??

regards,

Nov 19 '05 #3
sorry i got it wrong the last time,
just a thought
capture the scroll position of the div into a hidden field in the onscroll
event of the div or before causing postback and onload set the scroll
position of the div to the value in the hidden field.
let me know if it works :)
--
HTH
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi!

thanks.

However, I'm trying to resume the scroll position of a region (DIV -
Asp:Panel) of the page, apparently the smartNavigation does not do that :(

any more ideas please?

regards,
"srini" <sr***@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
hi
check out smartnavigation option for the page.
--
The best
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi,

I have placed a DataList control inside a panel control to obtain a
scrollable list using the overflow:auto attribute. The rows in the data
list
contains and edit LinkButton to enable editing of the selected row via
postback.
My problem is that if i click on the edit button of a row which is not
immidiately visible in the scrollable list than i have to scroll down to
find the row to be edited. Is there a way to resume the scroll position??

regards,


Nov 19 '05 #4
thanks again!

that's got to be it.. but can't work on it for now.

regards,

"srini" <sr***@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
sorry i got it wrong the last time,
just a thought
capture the scroll position of the div into a hidden field in the
onscroll
event of the div or before causing postback and onload set the scroll
position of the div to the value in the hidden field.
let me know if it works :)
--
HTH
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi!

thanks.

However, I'm trying to resume the scroll position of a region (DIV -
Asp:Panel) of the page, apparently the smartNavigation does not do that
:(

any more ideas please?

regards,
"srini" <sr***@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
> hi
> check out smartnavigation option for the page.
> --
> The best
> srini
> http://www.expertszone.com
>
>
> "Emmanuel" wrote:
>
>> Hi,
>>
>> I have placed a DataList control inside a panel control to obtain a
>> scrollable list using the overflow:auto attribute. The rows in the
>> data
>> list
>> contains and edit LinkButton to enable editing of the selected row via
>> postback.
>> My problem is that if i click on the edit button of a row which is not
>> immidiately visible in the scrollable list than i have to scroll down
>> to
>> find the row to be edited. Is there a way to resume the scroll
>> position??
>>
>> regards,
>>
>>
>>


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Boniface Frederic | last post by:
Hello, I have frame displaying the last posted messages. I set <meta http-equiv="refresh" content="5"/> to automatically refresh the frame every 5s My problem is; if I scroll the frame to see...
2
by: GrantS | last post by:
I am trying to convert the VB.Net code example povided by http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx into C# (ASP.Net)without success. No errors are thrown in the VB...
4
by: ojorus | last post by:
Hi! I just wonder how I can save a page's scroll position with javascript. (i'm not a javascript developer) I have a PHP-page with two columns; the left contains a lot of thumbnails, and the right...
5
by: JezB | last post by:
There are a few references on the net about how to restore a page's scroll position over a postback. This is a simple one which works for me: eg....
1
by: JC | last post by:
I'm sure you've all seen the save scroll position from 4 guys from rolla which can be found here > http://aspnet.4guysfromrolla.com/articles/111704-1.aspx BUT try to get that to work AND still be...
6
by: | last post by:
Hi all, I have a long web form on asp.net 2.0. When I go at the bottom and click on submit, a postback occurs and if there are any validation errors (no client-side checking being done), the...
7
by: Lit | last post by:
Hi, How can I capture the vertical scroll bar position for a Listbox. I have a Listbox of 100 items + when I click on it I post back remove the item selected. After returning to the client...
2
by: Brent | last post by:
I have a child page opened with a simple open() statement. I'd like to be able to refresh the parent page and keep the current scroll position. (If I do an "F5" refresh on IE, for instance, the...
12
Frinavale
by: Frinavale | last post by:
I think I'm trying to do something impossible. I have a <div> element with a overflow style set to "scroll". In other words my <div> element allows the user to scroll the content within it. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.