473,413 Members | 1,833 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,413 software developers and data experts.

How to retain scroll bar of a panel at the end.

i have a panel..
A datagrid is placed in it within a updatepanel..
now when i update my datagrid, the scroll bar go to top..
but i want that scroll bar at the end...
so how can i code...
help..
Apr 9 '11 #1
1 1477
Scrolling is controlled client-side, so, you will have to use something client-side (i.e., JavaScript) to modify it.

Do you want to scroll to the end or to the previous position (let's say they were only half-way down)? The first is pretty easy, but the latter requires that you save off the previous location somehow. Either way, using JavaScript you will ultimately use a technique similar to this: http://radio.javaranch.com/pascarell...573598403.html
Apr 12 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
1
by: jason | last post by:
Hello. I'm working with ASP.NET serverside and am looking for an easy way to retain scroll position of the window. Is there any way that a hidden form field could *always* have the current...
1
by: _Andy_ | last post by:
I've seen this question asked before, but no answer is visible. Is it possible to determine when the user scrolls an auto-scroll panel?
2
by: Leif Eirik Olsen | last post by:
Hi, I have some code I'm using in a CompactFramework project. The code works as expected on the CF, but when using this code on the FullFramework (FF) it does not work the way I want. It copiles...
0
by: John | last post by:
I have looked at RetainScrollLocation in javascript, but I need it in VB Script because that is the only language that I currently understnad. Can anyone help with some sample source code? thank ...
3
by: rmunson8 | last post by:
I have added Panel control to a web page which contains a GridView. The Panel's ScrollBars property is set to auto. When I select the Select CommanField button for a row (which obviously causes a...
2
by: Jason Chu | last post by:
Simple compatibility question, I have this: <table height="100%" width="50%" border="1"> <tr height="50%"> <td> <asp:Panel id="Panel1" runat="server" Height="100%" Width="100%"...
3
by: the friendly display name | last post by:
I have on a site some very populated listboxes, now, when the user scrolls the listbox to chose some items, and then clicks a button, thus, a postback starts, the scoll position of the listbox is...
4
by: mateusz.zajakala | last post by:
Hi, I have panel (with autoscroll property) on which I'm dynamicaly adding of controls. When I want to scroll my panel using scrollbars it freezes all the controls added on that panel, makes...
3
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.