Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search


Updatepanel - Maintain Panel Scroll Position On Partial Postback?

I have a gridview that putted in ASP.NET Panel. both of panel and Gridview are in an UpdatePanel. there is a column in gridview that Causes Partial PostBacks. i want to Maintain Panel Scroll position on those postbacks.

View 1 Replies (Posted: Mar 13 at 10:06)

Sponsored Links:

Related Forum Messages For ASP.NET category:
How To Maintain Verticle Scroll Position During Postback
I have a fairly tall page (more than 1 screen height) with some checkboxes near the bottom. The checkboxes cause an autopostback which reveals additional controls for the user to interact with. When the postback occurs, the page returns to the top. How can I cause the screen to remain positioned at the original checkbox?


Posted: Jan 08, 2009 05:29 PM

View 3 Replies!   View Related
Web Forms :: Maintain Scroll Position On Page Without Postback
I have somecollapse ableanhcor link tags on a page that reveal some text when clicked on i.e.: [+] Topic This is all done in javascript client side. I would like to maintain the users scroll position on the page when these links are clicked on. They dont cause a postback as iv mentioned above its client side javascript.

Posted: Mar 11, 2010 09:34 AM

View 6 Replies!   View Related
AJAX :: Maintain Listbox Scroll Position On Postback?
How do you accomplish this? I did itprogrammatically in jscript, but as soon as you clicked an arrow it went back to tthe top.

Posted: Oct 09, 2008 05:44 PM

View 7 Replies!   View Related
Web Forms :: Listbox Auto Postback - How To Maintain Scroll Position
I have an listbox with 15 rows and auto postback when the selected item is changed.This works as expected but, when the form is re-loaded, IEscrolls the list so that the last selected item is now the top visible item in the list. This produces aconfusing/jumpy effect for the usersand makes thelistbox more difficult to use than it needs to be.

Is there any way to get the list scroll position to stay as it was before the postback?i.e, if I select an item from the middle of the listbox, the listbox is scrolled to the same pointafter postback.

I am using .Net 3.5but no AJAX.

Posted: Mar 11, 2010 09:12 AM

View 6 Replies!   View Related
Web Forms :: Scroll Position After Partial Postback?
I have a page that uses AJAX updatepanels. On this page, we have some radio buttons with Autopostback set to true. The problem is that after the postback, the control was losing focus so that when the user would hit tab, control would be restored to the first control on the page and not the drop-down which fired the event. As a fix, I wrote some set focus code in the radio button's oncheckchanged event. This seems to have fixed the problem with the focus. The problem I have is that the browser loses its scroll position every time I click on one of these radiobuttons. Is there a way to maintain scroll position? Maybe there is another way to resolve my original problem of setting focus that will prevent this from happening.

Posted: Feb 01, 2010 03:11 PM

View 6 Replies!   View Related
Forms Data Controls :: Maintain Scroll Position In Gridview Or Datagrid During Postback
I am developing site using 2.0 I have a gridview which is scrollable, can some one tell me how do I maintain scroll position during postback in datagrid

Posted: Feb 14, 2008 07:12 PM

View 9 Replies!   View Related
Web Forms :: Maintain Scroll Position In Gridview With Fixed Header Panel On Select / Edit
if this has been asked and answered recently, but the search - even the advanced search - here brings back far too many responses for me to tell. I have an AJAX-enabled webform that uses a master page. The new webformhas a gridview placed inside a panel in order to fix the gridview's header position. Thisis also inside a Multiview panel. That works.But, if the user clicks the 'edit' button on a row of the gridview which is anywhere below the first set of initially-displayable rows, a postback occurs and the scroll position of the panel returns to the top of the gridview and the user has to scroll back down to find their row sitting there in edit mode. I just want the user returned to where they left off.I've looked at a lot of possible solutions, some using javascript and some using cookies to record and re-set the scroll position of the panel control (or it's associated div), but none of them seems to be working with AJAX and ASP.NET 2.0. And, the cookie technique I don't think is appropriate for the corporate intranet I'm working with.

Posted: Feb 18, 2007 07:21 PM

View 15 Replies!   View Related
Web Forms ::maintain ScrollBars Position In Asp:Panel On Postback?
ScrollBar position resets on postback.Is there anyway to maintain position ?I am adding UserControl(s) dynmically to the page, therefore I want to maintian positon (always maintain position at the end)Following is my .aspx file (Just to show where is the asp:panel and User controls)


Posted: Mar 30, 2010 12:22 AM

View 5 Replies!   View Related
Web Forms :: Maintaing Scroll Position On Postback For TreeView In Panel
I have some code which maintains the scroll position inside my panel when I click on a tree view node. So on the selected node change event I have the following:


What this does is maintains the scroll position and a grid view appears. My problem is when I do another postback, for example when I select a link button on the grid view a post back occurs and the scroll position is then lost. How can I stop this happening? Is there a way of seraching for a particular tree node?

Posted: Oct 11, 2009 02:12 PM

View 3 Replies!   View Related
C# - Maintain Scroll Position On Autopostback?
how can I get back to the same position of a page on postback. It always seems to get to the top of the page
I've tried using ' maintainScrollPositionOnPostBack = "true" ' but its not working.

Posted: Feb 28 at 21:46

View 3 Replies!   View Related
Maintain Scroll Position On Validation?
I am using VB.NET 3.5 within Visual Studio. I have a form near the bottom of a page that leaps back to the top when i hit submit. I discovered the MaintainScrollPositionOnPostback="true" trick but it only works if there isn't a validation problem.

If i submit the form my validation summary box is populated but the page jumps to the top of the page.Also, not sure if its important/helpful but my form is inside a MultiView.

Posted: Jan 29, 2009 04:51 PM

View 3 Replies!   View Related
Web Forms :: Maintain The Scroll Bar Position?
i used the dropdown list in user control.when i select the dropdownlist that scroll bar went to can i maintain the scroll bar position in that situation?

Posted: Apr 07, 2010 12:44 PM

View 3 Replies!   View Related
Maintain Scroll Position On Page?
I'm using MaintainScrollPositionOnPostback=true property but this doesn't seem to work with chrome. (works on IE),

Is there any other way to maintain scrool position without using this property?

Posted: Jun 7 10 at 10:52

View 1 Replies!   View Related
Web Forms :: Maintain Scroll Position Of Div In UserControl?
I have taken adiv inside the UserContol.

this usercontrol isplaced in a page having master page.

In div i have checkboxlist control .

I want to preserver scroll position ofwhile postback.

I have also used UpdatePanelin which i have placed this user control.

I havealso triedMaintainScrollPositionOnPostback="true"

but does not work.

My page structure is this:

Masterpage > contentplacehoder (child Page)> UpdatePanel > User control > div > asp:CheckboxList

Posted: Sep 10, 2010 11:55 AM

View 4 Replies!   View Related
AJAX :: Maintain Scroll Position Of A DIV Over A Callback?
This scroll position thing is doing my nut to put it frankly. I can see plenty of methods on the net using allsorts of techniques ; HTC Behavior, cookies, hidden form fields, MaintainScrollPosition etc. However, none do exactly as i'd like them to

They all work when a page is loaded for the first time, no problem there at all. It runs the page load and fires the window.onload function client side no worries and all is well in the world. This window.onload does not see to fire on a callback though and my scroll position is lost forever

MaintainScrollPositionOnPostBack only maintains the scroll on the main browser screen so that's not going to do the trick either

So, does anyone know how to maintain the scroll position of a div over a callback? I think i'm nearly there, if only i could fire a client-side method when my UpdatePanel has done it's callback thang. I found the best looking method using cookies Here but, as said above, i can't get the onload function to fire when a callback completes. if i could get the UpdatePanel to do this, i'd be home and dry

Posted: Jan 26, 2007 02:31 PM

View 16 Replies!   View Related
Web Forms :: Maintain Scroll Position Of Page
I want to maintain the scroll position of a page. So I try to get the page cordinates and set the position on the page load (actually I've a postback in my page) using JS as follows. What I've done is on a client click on an image get the page cordinates and keep in a hidden field.


GetScollerPosition function invoke in an image click event. But it's not work as I expected, the SetScrollPostion always find the value of hidden fields as zero.

Posted: Jul 19, 2010 04:16 PM

View 8 Replies!   View Related
Web Forms :: Maintain Scroll Position Not Working
I've tried using the maintainScrollPositionOnPostBack property both inthe Web.config file:but neither is working.


and in the page directive:

<%@ Page
Title="Helpdesk Request Form" %>

but neither is working. I've searchedthe forumsbut can't find an answer. Does it matter that I'm using a Master page?

Posted: Nov 30, 2006 06:25 PM

View 3 Replies!   View Related
Web Forms :: Maintain Scroll Position With Validators?
I work with VS 2005. I have trouble maintaining the position of my web form. I have two textboxes, one submit button, one RequiredFieldValidator for the first textbox and a CustomValidator fot the second textbox that performs a server validation. I set the MaintainScrollPositionOnPostback to true. The problem is that when the first TextBox is empty and the RequiredFieldValidator catches the error, it doesn't actually perform a postback but return to the top position of the page. The MaintainScrollPositionOnPostback does not work in this occasion. When the first TextBox is ok, but the CustomValidator find an error then the MaintainScrollPositionOnPostback does work and returns to the proper position. I tryied to put some Javascript code in order to correct the problem but then I maintained the scroll position when the RequiredFieldValidator catches an errror and lost position when the CustomValidator finds an error and perform a postbacK! I cannot maintain the scroll position for both validators. With MaintainScrollPositionOnPostback only the second validator returns to the proper position and with Javascript only the first validator remains in current position!

Posted: Dec 15, 2009 09:46 PM

View 3 Replies!   View Related
Maintain Scroll Position - Jumps If There Are Validation Errors
When clicking the update button in a formview, if there are validation errors on the page it will jump to the top of the page. Since the validation summary is at the bottom near the update button, is there a way to keep it at the bottom of the page? NOTE: the MaintainScrollPositionOnPostback is set to true but it seems to be ineffective in this case.

Posted: Feb 06, 2009 04:32 PM

View 9 Replies!   View Related
Web Forms :: Maintain Scroll Position On Post Back - TabContainer
I am using usercontrol to populate a web part. The user control consists of ajax tab and in it there is another user control which is a gridview. I add the tabs - My top level usercontrol to the web part. Now when user makes a selection in the gridview (this does a postback) I would like tomaintainthe scrollposition. I tried adding - this.Page.MaintainScrollPositon = true to the page load event of my tabs (priamary) user control. But it does not seem to work. Is there any other way to maintain position in a web part.

Posted: Aug 05, 2010 08:09 PM

View 3 Replies!   View Related
Maintain Scroll Position After Client-side Validation Fails?
I've got an ASP.NET webform with asp:TextBox and asp:RequiredFieldValidator at the bottom of the page. If client side validation fails on form submit - the page scrolls all the way up.

I'd like to maintain the scroll position on failed client-side validation.

Posted: Jun 29 10 at 22:59

View 1 Replies!   View Related
Forms Data Controls :: Maintain Scroll Position Of A DataGrid In A WebPage Without Using Paging?
I am working on .NET Technologies.In my current project I need one requirement.

What my requirement is , In a webpage I am using a DataGrid for displaying the bulk data.I provided Delete Option for this grid.For clicking on every row of that DataGrid ,I am displaying that row details in a separate panel by using some controls...we can edit this data in that panel..and I am saving that data by using a button control..After saving the data, the datagrid is getting rebinded.

DataGrid has a autoscroll property true .If we are edit a row which is exist in the middle of the grid..after saving that data by using that save button in the panel...what happened is the data grid rebinding and the pointer goes to the first record in the datagrid.....

Can we maintain that scroll position for that datagrid after saving(editing) the data?

Posted: Feb 24, 2006 09:08 AM

View 5 Replies!   View Related
How To Maintain Focus Position After Page Partial Post Back
I have four controls in a page with update panel.Initially mouse focus is set to first control.when I partially post back the page to server the focus automatically moves to first control from the last focused control from the control I have tabbed down to.Is there any way to maintain the last focus?

Posted: Apr 24 10 at 3:16

View 1 Replies!   View Related
Forms Data Controls :: Gridview - Scroll Position - The Page Posts Back And The Scroll Position Is Not Maintained?
I have a gridview which has an edit button. If the edit button is clicked, then textboxes appear that allow users to enter data. The problem is if i scrolldown the gridview and i click the edit button, the page posts back and the scroll position is not maintained.

Posted: Jun 14, 2007 07:32 AM

View 5 Replies!   View Related
AJAX :: Maintaining A Div's Scroll Position Within An UpdatePanel?
Is there any way to maintain a div's scroll position within an UpdatePanel during a callback? Here is an example:


Posted: Dec 22, 2006 07:09 PM

View 6 Replies!   View Related
How To Remain Scroll Position Of A Panel
I have a panel, inside a panel there are some checkbox and radiobuttonlist. This panel is place inside an UpdatePanel ajax.

When I click on a checkbox, it will raise autopostback with ajax supported, then the scrollbar of the panel always move back to the first position. It does not keep the current scrolling position.

How could I remain the scrollbar position?

I already have tried to add:

this.MaintainScrollPositionOnPostBack = true;

Posted: Aug 24 10 at 14:22

View 1 Replies!   View Related
C# - Maintaining Scroll Position After Postback?
I have some problems with maintaining scroll position after postback. First time I experienced the problem was when I (believe) added Combobox control from AJAX control Toolkit and/or UpdatePanel from AJAX Extensions. The problem is when I do the postback on the page the page is loaded at the top and not where I did the postback. Actually, this wouldn't be a problem if it isn't happening on a very large form. I have already tried using MaintainScrollPositionOnPostback="true", but it wasn't helpful at all. I can provide the code if needed, but I don't think it would be of any use because I have comboboxes inside update panels which are rebinded on a button click.

Posted: Feb 19 at 16:42

View 1 Replies!   View Related
Web Forms :: Maintaining Scroll Position Inside Panel 3.5?
I'm working on a page which consists of many sections i.e. the page is divided into many sections. After scrolling down 2-3 section, there is a place where i have to enter a number inside the text box & click "Search". This Textbox & Button is inside a Panel. The problem is after hitting the "Search" button, the code queries to database & do a postback. The page renders with new result but scroll up to the top. I wish to maintain the scroll position back to the Textbox but with new result i.e. after postback. I already tried the below stuff but nothing worked out

1. MaintainScrollPositionOnPostback

2. Javascript -


Posted: Sep 02, 2009 02:30 PM

View 4 Replies!   View Related
Web Forms :: Maintaining Scroll Position When No Postback?
Let me walkthrought the scanerio straightaway A "Search page" displays list of all customers. Clicking on a link on each customer page, redirects to the "Customer Detail Page" which is within the application only.When user clicks "Back" button of "Customer Detail Page", the "Search Page" gets displayed with scroll position on top. My requirement is that, I want to the scroll at the same place where it was before user clicked on "Customer Detail Page".

Posted: Sep 03, 2009 11:57 AM

View 10 Replies!   View Related
Web Forms :: How To Retain Scroll Position On Postback
How can we retain Panel scroll position on postback without using any cookies.

Posted: Jul 23, 2010 12:17 PM

View 6 Replies!   View Related
Web Forms :: Way To Maintain A Scrollbar Position In A Textbox After Each Postback?
Is there a wayto maintain a scrollbar position in a textbox after eachpostbackor does asp:textbox have something similar to maintainScrollPositionOnPostBack.And the textboxwas created in a WebControl Form (.ascx)

Posted: Nov 16, 2009 02:30 PM

View 7 Replies!   View Related
Web Forms :: Maintain ListBox Scrollbar Position On Postback?
How do i Maintain ListBox scrollbar position on postback ?

further details*

Listbox is populated from database size can change.

Scrollbar is vertical.

Posted: Jan 12, 2010 10:11 AM

View 1 Replies!   View Related
Javascript - How To Keep Whole Page Scroll Position After Asynchronous Postback
i am using 4.0 iis 7.5 microsoft visual studio 2010

what i want is keep whole page (browser) scroll position (not a div or panel) when asynchronous postback happened (update panel) how can i do this actually i had a function which can keep div scroll bar position after postback like this

<script type="text/javascript">
var xPos, yPos;
var prm = Sys.WebForms.PageRequestManager.getInstance();
function BeginRequestHandler(sender, args) {
xPos = document.getElementById('Main').scrollLeft;
yPos = document.getElementById('Main').scrollTop;
function EndRequestHandler(sender, args) {
document.getElementById('Main').scrollLeft = xPos;
document.getElementById('Main').scrollTop = yPos;

bu i could not find browser scroll bar id to get its values to get with document.getElementById

Posted: Oct 16 10 at 9:59

View 1 Replies!   View Related
AJAX :: Partial Refresh Of Update Panel Using Do_postback() Changing Position?
I am facing a critical condition wherein I have a web page and a User control within it.I need to set the value of two labels in the user control using values collected on the server side.However whatever I do on the server side or client side I do see on the webpage although I can see in the code that it is being set.So Now I am just sending the value from the server side and setting it on the client side.I am sending from server side using,

if(rowcnt > 0 && rowcnt1 > 0 && (selectedh != string.Empty))
ScriptManager.RegisterClientScriptBlock(this.updMainTable, typeof(string), "test1", "showRehabMain('"+val+"')", true);


Posted: May 29, 2010 10:40 AM

View 2 Replies!   View Related
Javascript - Scroll To Panel After Postback C#
How do i scroll to a panel within an updatepanel after i load the content

Posted: Nov 19 10 at 9:20

View 4 Replies!   View Related
How To Know Which UpdatePanel Causes The Partial PostBack
In a page contains two UpdatePanels, How can I know which UpdatePanel causes the partial PostBack ?

I mean in the Page_Load event handler.

This is my code:


Posted: Jan 31 at 13:59

View 2 Replies!   View Related
Preserve Scrolling Position On Panel On Postback
I have a panel inside an update panel. The panel has a scrollbar. When a control inside the panel is clicked, the scrollbar resets, scrolling the panel back to the top. Is there a simple way to preserve the scrolling position of a panel inside and update panel when a postback happens from inside that panel?

Posted: Jan 11, 2010 04:32 PM

View 5 Replies!   View Related
Returning Focus (Position) In Panel After PostBack?
VWD 2008 Express. Visual Basic.

I have a gridview control within a panel control. The gridview can contain up to 128 rows. The panel is 300px high and has a vertical scroll bar that allows me toscroll to the row I want to see or edit in my gridview. When I click the "Edit" button on an item within my gridview, the page posts back and returns to panel scrolled all the way back to the top. I have to then scroll back down to get to the item I want to edit in my gridview (which has correctly been placed in edit mode). How can I make the panel return to its postion (or stay in its postion) after a postback without me having to manually scroll back down?

Posted: Mar 08, 2010 02:37 PM

View 8 Replies!   View Related
AJAX :: Textbox Not Writable After Partial Postback Of Updatepanel?
i got a strange problem. my project was ok before implimenting ajax. i have just implimented ajax in one page only with Tabcontainer and updatepanels only nothing else. almost all controls are devided into different Tabs with respective update panels.

mostly it is working ok. but the problem is :

1. in some controls i am not able to write anything even the control is "Enabled=True" and focus is on the same control after partial postback.

2. and as soon as i press Tab control goes to Address bar.

3. some time tab key is also not working.

here some code :


Here the Logic :

as soon as i type inception date; expirydate is automatically calculated and focus should come to sumassured. after this it should allowed to enter sumassured amount, which is not allowing to write.

As soon as i change tab and come back to original tab then i can write values normaly.

Posted: Mar 04, 2010 04:39 AM

View 4 Replies!   View Related
Copyright 2005-08, All rights reserved