PDA

View Full Version : Tell when a list item comes into view?



Johnbran
10 Feb 2012, 4:06 AM
Hello everyone,

Is there a way to tell when a list item comes into view? I have a very long list with icons. I want the list items to down load the icon when it comes into view. I have a default image setup and working. Currently the list tries to download all the icons at once. If I can tell when an item comes in view I could trigger the download. Here is an example.

Thanks
31580

mitchellsimoens
10 Feb 2012, 5:14 AM
There is not an event when that happens. Best you can do is detect scrolling and find the offset and try to calculate if it is.

Johnbran
10 Feb 2012, 5:20 AM
Hey Thanks for the lead. What event would fire on scroll? I couldn't find one in the docs. How would I check the off set? The vertical position based on list height?

Thanks