Updatepanel - Maintain Panel Scroll Position On Partial Postback?

Mar 13, 2011

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

Similar Messages:

How To Maintain Verticle Scroll Position During Postback

Jan 8, 2009

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?


View 3 Replies

Web Forms :: Maintain Scroll Position On Page Without Postback

Mar 11, 2010

I have some collapse able anhcor 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.

View 6 Replies

AJAX :: Maintain Listbox Scroll Position On Postback?

Oct 9, 2008

How do you accomplish this? I did it programmatically in jscript, but as soon as you clicked an arrow it went back to tthe top.

View 7 Replies

Web Forms :: Listbox Auto Postback - How To Maintain Scroll Position

Mar 11, 2010

I have an asp.net listbox with 15 rows and auto postback when the selected item is changed. This works as expected but, when the form is re-loaded, IE scrolls the list so that the last selected item is now the top visible item in the list. This produces a confusing/jumpy effect for the users and makes the listbox 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 point after postback.

I am using .Net 3.5 but no AJAX.

View 6 Replies

Web Forms :: Scroll Position After Partial Postback?

Feb 1, 2010

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.

View 6 Replies

Forms Data Controls :: Maintain Scroll Position In Gridview Or Datagrid During Postback

Feb 14, 2008

I am developing site using asp.net 2.0 I have a gridview which is scrollable, can some one tell me how do I maintain scroll position during postback in datagrid

View 9 Replies

Web Forms :: Maintain Scroll Position In Gridview With Fixed Header Panel On Select / Edit

Feb 18, 2007

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 webform has 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.

View 15 Replies

Web Forms ::maintain ScrollBars Position In Asp:Panel On Postback?

Mar 30, 2010

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)


View 5 Replies

Web Forms :: Maintaing Scroll Position On Postback For TreeView In Panel

Oct 11, 2009

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?

View 3 Replies

C# - Maintain Scroll Position On Autopostback?

Feb 28, 2011

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.

View 3 Replies

Maintain Scroll Position On Validation?

Jan 29, 2009

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.

View 3 Replies

Web Forms :: Maintain The Scroll Bar Position?

Apr 7, 2010

i used the dropdown list in user control.when i select the dropdownlist that scroll bar went to top.how can i maintain the scroll bar position in that situation?

View 3 Replies

Maintain Scroll Position On Page?

Jun 7, 2010

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?

View 1 Replies

Web Forms :: Maintain Scroll Position Of Div In UserControl?

Sep 10, 2010

I have taken a div inside the UserContol.

this usercontrol is placed in a page having master page.

In div i have checkboxlist control .

I want to preserver scroll position of while postback.

I have also used UpdatePanel in which i have placed this user control.

I have also triedMaintainScrollPositionOnPostback="true"

but does not work.

My page structure is this:

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

View 4 Replies

AJAX :: Maintain Scroll Position Of A DIV Over A Callback?

Jan 26, 2007

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

View 16 Replies

Web Forms :: Maintain Scroll Position Of Page

Jul 19, 2010

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.

View 8 Replies

Web Forms :: Maintain Scroll Position Not Working

Nov 30, 2006

I've tried using the maintainScrollPositionOnPostBack property both in the Web.config file: but neither is working.


and in the page directive:

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

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

View 3 Replies

Web Forms :: Maintain Scroll Position With Validators?

Dec 15, 2009

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!

View 3 Replies

Maintain Scroll Position - Jumps If There Are Validation Errors

Feb 6, 2009

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.

View 9 Replies

Web Forms :: Maintain Scroll Position On Post Back - TabContainer

Aug 5, 2010

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 to maintain the scroll position. 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.

View 3 Replies

Maintain Scroll Position After Client-side Validation Fails?

Jun 29, 2010

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.

View 1 Replies

Forms Data Controls :: Maintain Scroll Position Of A DataGrid In A WebPage Without Using Paging?

Feb 24, 2006

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?

View 5 Replies

How To Maintain Focus Position After Page Partial Post Back

Apr 24, 2010

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?

View 1 Replies

Forms Data Controls :: Gridview - Scroll Position - The Page Posts Back And The Scroll Position Is Not Maintained?

Jun 14, 2007

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.

View 5 Replies

AJAX :: Maintaining A Div's Scroll Position Within An UpdatePanel?

Dec 22, 2006

Is there any way to maintain a div's scroll position within an UpdatePanel during a callback? Here is an example:


View 6 Replies

How To Remain Scroll Position Of A Panel

Aug 24, 2010

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;

View 1 Replies

C# - Maintaining Scroll Position After Postback?

Feb 19, 2011

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.

View 1 Replies

Web Forms :: Maintaining Scroll Position Inside Panel 3.5?

Sep 2, 2009

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 -


View 4 Replies

Web Forms :: Maintaining Scroll Position When No Postback?

Sep 3, 2009

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".

View 10 Replies

Copyrights 2005-15 www.BigResource.com, All rights reserved