views:

281

answers:

1

Hi there,

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

A: 

Given the XML

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

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

<mx:Label text="{data.a.b}"/>
thelost
Thanks, that did it!
Markus