3 Replies Latest reply on Apr 28, 2011 10:51 AM by Budkin76

    Spark style property won't work inside datagrid renderer

    Budkin76 Level 1



      I've got a custom component with a spark text input in it (s:TextInput) I have it styled via css and one of the properties is:


      contentBackgroundColor (This is a spark specific style according to the docs)


      I'm trying to use this component inside an advanced data grid (mx:AdvancedDataGrid) via an advanced data grid item renderer (s:MXAdvancedDataGridItemRenderer).


      The issue is that all the properties of the style I'm using are working fine except for contentBackgroundColor. Everything works fine no matter where I use this component except for when I use it in this renderer.  I've tried adding the normal backgroundColor style that is used in the mx version but that doesn't seem to work either.


      Any ideas on why this is happening and what I can do to fix it? Thanks.