--- In flexcoders@yahoogroups.com, "ozziegt" <[EMAIL PROTECTED]> wrote: > > I have a List and I would like to apply a specific style (font weight, > background color) to a couple of items. I am looking for the best way > to do this from a performance perspective... > > Is there any way to do this without creating a custom item renderer? > > I created an ActionScript item renderer based of ListItemRenderer, and > overrode the commitProperties() method to apply the appropriate style. > However, while bold works, using setStyle with backgroundColor isn't > working. Any ideas? Is this the best way to do it or should I just > create a custom item renderer in MXML based off HBox?
http://flexdiary.blogspot.com/2008/08/tilelist-with-stylefunction.html for examples of itemRenderers that might point you in the right direction: http://flexdiary.blogspot.com/2008/09/groupingcollection-example- featuring.html http://flexdiary.blogspot.com/2008/09/extended-datagrid-with- stylefunction.html Finally, you might be able to just use the renderer you have: http://flexdiary.blogspot.com/2008/06/using-css-typeselector-with.html