I saw this info in another thread, and it makes sense, especially since I'm thinking of using virtualization:
Renderers are "virtual" There's only as many renderers as you can see on > screen plus one or two. If you have 1000 items and only see 8, there's only 8 > to 10 renderers so indexToItemRenderer will return null for the other 992. > > It is better to simply iterate through the collection/dataprovider using > > So the question becomes, how do you change the state of a specific item? Should I add a column in my ArrayCollection called "state" and use that in the ItemRender? Cheers, Baz > > ICollectionView/IViewCursor or IList APIs > > > > On Wed, Aug 12, 2009 at 12:57 PM, Baz <[email protected]> wrote: > I have a custom ItemRender that uses an ArrayCollection dataProvider. > Everything loads up and displays nicely, but I am having a heck of a time > finding out how to get at a specifc item in the list to change its state - > something like myDataContainer.ItemArray[10].state = "my_custom_state" to > get at the 10th item. Bear in mind its not the source ArrayCollection that I > need to get at, that's no problem, its access to the components that get > created from the ArrayCollection that I'm looking for. Is there a way? > > Thanks very much. > >

