Flex 4 - Current Items in Viewport of a List?
I have provided an ArrayCollection to a List, works fine, scroll and sweet.
I am able to access the carretIndex (though not necessarily the ones in view) by
list.caretIndex
Is it possible to access the list of items c开发者_运维问答urrently visible in the List.
What I am curious to know, is how can I can access (read) the first (or any of the) item in a given View port of the list.
Thanks Florian,
That gave me a direction in searching in the DataGroup for the currently in view, Turns out Adobe has the perfect method for this basic problem:
scroller.dataGroup.getItemIndicesInView()
and this returns you an Vector.
See this or this
精彩评论