Questions tagged [maintainscrollpositionon]
26 questions
3
votes
2 answers
maintainScrollPositionOnPostBack in ASP.NET MVC
How do I maintain the scroll position on a postback in ASP.NET MVC? The directive maintainScrollPositionOnPostBack on the page and in the web.Config does not seem to apply.

Keith Adler
- 20,880
- 28
- 119
- 189
2
votes
1 answer
Maintaining the scroll position when the list is being modified in flutter
I have a list thay displays elements with different heights (it can be also zero which mean the element is hidden), and I have a slider that controls the heights if the elements using a certain equation. The problem is, if I am standing on the 15th…

Ruba Saleh
- 21
- 2
2
votes
0 answers
Scroll position save and restore scroll position once back I am on my position in Angular
I am trying this but it's not working. I am implementing management software do and I need this solution
RouterModule.forRoot(routes, {scrollPositionRestoration: 'enabled'})
Right now I am on the page in the last position okay once I am clicking…

Sushil
- 670
- 7
- 14
2
votes
2 answers
WebForm_SaveScrollPositionSubmit is undefined - ASP.NET
I'm upgrading an ASP.NET 1.1 app and have things working but am seeing the Javascript error referenced in the title. From research it appears that ASP.NET is not spitting out the javascript that is used to maintain scroll position between…

ahockley
- 3,696
- 24
- 26
2
votes
1 answer
Update RecyclerView while keeping its scroll position
How can I keep the current scroll position in a RecyclerView after updating the contents?
In the onCreate I set a task to repeat as follows:
private void setRepeatingAsyncTask() {
final Handler handler = new Handler();
Timer timer = new…

jampez77
- 5,012
- 7
- 32
- 52
2
votes
2 answers
ASP.NET Focus Scrolls Page to Input
I have a few textboxes/labels inside of an UpdatePanel. When I tab out of one of the textboxes, a label has to be updated with some text. This causes focus on the page to reset to the topmost element.
This is a data-entry form and the users expect…

Harper
- 1,285
- 3
- 15
- 35
2
votes
2 answers
maintainScrollPositionOnPostBack doesn't work when i use updatePanel
I take advantage of an update panel and would like to use the ScrollPositioning but it doesn't work.
I use maintainScrollPositionOnPostBack="true" in .aspx pages.
What can I do so that it works?

Nilgün
- 51
- 2
- 8
1
vote
3 answers
how to stop page jumping and maintain both panel & browser scroll position when user click on datalist item?
I have a datalist inside the panel
…

Rocky
- 4,454
- 14
- 64
- 119
1
vote
0 answers
How to save ListView scroll position in fragment after navigating to another fragment in android?
I have created a notes app in which files are stored in internal storage. I have many fragments associated with a single activity. The first fragment has a ListView that shows all the saved files. On clicking on any item of ListView, a new fragment…

Chandresh Parmar
- 176
- 1
- 10
1
vote
1 answer
Restoring RecyclerView scroll position within a Fragment
There a more than enough questions on SO about this, but no method I try seems to work. All I am trying to do is restore the "scroll position" of a RecyclerView that is nested within a Fragment. For example, when a new fragment is opened (using…

Liam G
- 771
- 2
- 9
- 26
1
vote
1 answer
Asp.net maintainScrollPositionOnPostBack and forms validation fail
I have a very long form that has to be filled out. I have maintainScrollPositionOnPostBack enabled as I have multiple controls that hide/show based on user input.
Since the form is long I'd like for the page to focus and scroll to the first control…

mtNewToJava
- 15
- 4
0
votes
2 answers
ASP.NET Maintain scroll position after postback in div inside data list and user control
My situation looks like this: I've got x-axis scrollable div that contains buttons with numbers of page displayed. This div is placed in data list inside User Control responsible for displaying news on my site.
This is the code of this div and…

user964986
- 125
- 1
- 2
- 10
0
votes
1 answer
Asp.net - scroll goes to the top when redirecting querystring
I have a page with 100 products. When the product is clicked, I add the product info to the cart with session.
I'm sending the id of the product to the session with the querystring.
response.redirect("shop.aspx?id=2")
When the user clicks on the…

Eren
- 1
0
votes
0 answers
MaintainScrollPosition not working on mobile browsers after upgrading from .Net 2.0 to .Net 4.0
On a mobile browser, a user would zoom in and click a button. After the postback, the page would return to the same position and zoom as before. However, when the site was upgraded to .Net 4.0, the page loses the position and zoom on a postback. If…

HelloWorld999
- 1
- 1
0
votes
0 answers
Flutter preserve scroll position of CustomScrollView inside hero
I have a pane app with Drawer, which I show in a pane layout when the phone is in landscape mode:
To not animate the drawer between pages, I have put it into a Hero.
class SomePage extends Stateless Widget {
Widget build(BuildContext context) {
…

Nathan
- 7,099
- 14
- 61
- 125