3 Replies Latest reply on Feb 21, 2011 2:04 AM by Jorge Raimundo

    How to change itemRenderer properties

    Maximist Level 1

      Hallo. Inside my Application i have this list:

       

      <s:List id="listaTransazioni_listra_lst" width="100%" height="98%" skinClass="skins.mioList_skin">

       

      <s:layout>

      <s:VerticalLayout gap="5"/>

      </s:layout>

       

      <s:itemRenderer>

      <fx:Component>

      <ns1:myItemRenderer/>

      </fx:Component>

      </s:itemRenderer>

       

      </s:List>

       

      The myItemRenderer code is this:

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"

      xmlns:s="library://ns.adobe.com/flex/spark"

      xmlns:mx="library://ns.adobe.com/flex/mx"

      autoDrawBackground="true" width="100%">

      <fx:Script>

      <![CDATA[

       

       

      ]]>

      </fx:Script>

       

      <s:states>

      <s:State name="normal"/>

      <s:State name="hovered"/>

      <s:State name="selected"/>

      </s:states>

       

       

      <s:Label id="dataOrdine"

      x="2"

      maxWidth="70"

      maxDisplayedLines="1"

      verticalCenter="0"

      color.selected="#FFFFFF"

      fontSize="12"

      paddingTop="2"/>

       

       

      </s:ItemRenderer>

       

       

      I wish to change the color of the ItemRenderer Label Property (dataOrdine) from my application dinamically or with data bindings....but how can i do that??.. I can't find the way..

       

      Thx for all

       

      Max