简体   繁体   中英

sencha touch scroll position

I have a list which is loaded partially with the help of ListPaging plugin. When i change the view and return back to same list, only last items is loaded. I can load the next pages however i can not load the previous ones.

As a result of this, i send the data starting from 0 and finishing in last index from the server. But in this situation, scroll position is lost and it automatically scrolls to top after refresh.

How can i maintain the scroll position or is there a way to load previous records like the ListPaging plugin does for next pages?

Thanks in advance.

i think the problem you are facing is this

list-scrollToTopOnRefresh

This is set to true at default set it to false and try again... Hope it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM