01-17-2013 03:27 PM - edited 01-17-2013 03:32 PM
I have a question about listview.
I'm downloading from a website a rss feed that has multiple page in a listview, but I can only download one page at a time, so I was wondering if it was possible for the listview to detect that I get to the end of the list, which is 15 long, then preload the second page online. And that as smoothly as possible.
Thank you for the help.
I just saw that there was a ScrollPosition that I could read : https://developer.blackberry.com/cascades/referenc
but i'm wondering about how to make the transition between the guy ending the first page and loading the second one, then the third ect... in the listview
Solved! Go to Solution.
01-17-2013 04:00 PM
You've got a couple of options
ListScrollStateHandler gives you the atEnd property
If that isn't sufficient, then you can write your own custom datamodel. The data() function is called with the indexPath of the item that the ListView wants to access. In your datamodel you can check to see if this indexPath represents the position in the list that you want to start loading extra data
01-17-2013 11:28 PM
01-18-2013 02:24 AM