In Flex I can create an ItemRenderer to represent each item in the Lists DataProvider but how do I access the instance of the ItemRenderer via the DataProviders Object? Something like myList.getItemRenderer(dp.getItemAt(10));
相关问题
- How to load flex swf from flash?
- Converting Date with Time in PST into UTC format
- Is older version of flex SDK really required?
- Setting Page Title from a SWF
- How to handle right to left languages in Flash (pr
相关文章
- Trace on Chrome/Browser console
- Is building separate .swc allow a faster loading o
- Assigning an array of objects to a DataGrid
- Libraries for text animation in Flex / Actionscrip
- Flex 4 - Create states and add elements at runtime
- changin the default width and height of the dropdo
- Optionally use Flash 10.2 cursors, while still bei
- How can I draw dotted line in flex
By using this method, you cannot get the renderer that is outside of the viewable area and there will also be a lot of other issues.
I know this is an old thread, but perhaps it will help someone:
That will give you the ItemRenderer, if you have a custom IR then just use that class and cast and your set.
If you need to change how the item renderer is behaving, change the data that is causing the behavior.
This is a simple example where the I mark items to be deletable and the renderer changes according since the data has been changed. For larger data sets, I understand this can be a little slow but it gives you the control you are after.
If you need to change one renderer, simply modify the data on the corresponding object in the dataProvider or dataGroup.