View Full Version : preserveScrollOnRefresh?does not work

28 Jan 2016, 4:39 PM
When a 'dataview' view whose config preserveScrollOnRefresh is not set is refreshed, some page do not scroll to top, but some page scroll to top.

When I use ExtJS4.1, both pages do not scroll to top when it is refreshed.

I want to prevent from scrolling to top. So I set viewConfig preserveScrollOnRefresh, but does not work.

Some BBS pages mention about grid, but I can not find about dataview.

28 Jan 2016, 5:49 PM
You are probably talking about preserve scroll on refresh:

http://docs.sencha.com/extjs/4.1.0/#!/api/Ext.view.View-cfg-preserveScrollOnRefresh (http://docs.sencha.com/extjs/4.1.0/#!/api/Ext.view.Table-cfg-preserveScrollOnRefresh)

There doesn't seem to be any config with the name you mentioned.

28 Jan 2016, 6:02 PM
Thank you.I made a mistake.I changed the word.

28 Jan 2016, 6:37 PM
Please post a fiddle to demonstrate your issue.


Gary Schlosberg
29 Jan 2016, 6:32 AM
Sounds a bit like this issue.

There are a few fixes you could try to confirm if it's the same issue. Otherwise, is your store buffered? It would definitely help if you could please post a test case which recreates this issue.

29 Jan 2016, 6:23 PM
I set here. Please check this.https://fiddle.sencha.com/#fiddle/14qe Open the page, and scroll down, and click 'refresh' button. This button fire 'view.refresh()' function.

Gary Schlosberg
8 Mar 2016, 8:24 AM
Thanks. I added a note to the bug ticket to bump the priority up.

13 Apr 2017, 5:13 AM
What's the status of this item? I am experiencing this issue right now with 6.0.2.

Gary Schlosberg
13 Apr 2017, 3:09 PM
Here's the original test case placed into a Fiddle:

I'm not seeing the issue with 6.0.2. Are you able to reproduce in a test case?