By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,904 Members | 1,439 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,904 IT Pros & Developers. It's quick & easy.

Resuming scroll position

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.