PDA

View Full Version : Issue with sencha touch list



kulshreshtha.s
4 Oct 2011, 10:32 AM
Hi ,

I'm currently facing issue with list component. I have tried to refresh the list component in afterRender or beforeRender listener attribute.But, Nothing helped.

I have a search panel on one of the screens. If the user types any text. The app queries the server and render the results matching the text.
28513
028514

But, if the rendered list is large (i.e.,count is 150) and the user scrolls the till the bottom of the list and than go back to the search panel and search for new text. Now, If the result is large, he will see the list and have to scroll to the top to reach the start of the list otherwise there will be a blank white screen.
28515

I think, the issue is related to the layout.The layout is not getting refreshed. I tried to do refresh or dolayout(). But, nothing worked.

Any kind of help will be appreciated.:)


Thanks

steve1964
5 Oct 2011, 12:03 AM
Hi, you have to reset the scroller offset of the list, in the datachanged event of your store reset the offset in this way:

yourList.scroller.setOffset({y:0});

kulshreshtha.s
5 Oct 2011, 12:32 AM
It worked. Thanks a lot!!!