2

Im working at a DataGrid which has a custom itemRenderer with a checkbox and a Label inside. Im struggling adding the the values from a xml to the wright label dynamically... how can I make the connection from the datagrid's dataProvider (a xml doc) to the label and the checkbox? My itemRenderer loks a following:

<mx:Component id="ChoiceRenderer">
<mx:HBox width="100%" height="100%" horizontalAlign="center" verticalAlign="middle" horizontalScrollPolicy="off">
    <mx:CheckBox/>
    <mx:Label  />
</mx:HBox>

Thanks for any hint! Markus

Markus
  • 3,948
  • 8
  • 48
  • 64

1 Answers1

0

Given the XML

<a>
    <b>
    </b>
</a>

acces the contents of <b> e.g. by

<mx:Label text="{data.a.b}"/>
thelost
  • 6,638
  • 4
  • 28
  • 44