开发者

Flex: linking dataProvider with custom itemRenderer in a DataGrid

开发者 https://www.devze.com 2022-12-23 02:19 出处:网络
I开发者_运维知识库m 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开发者_运维知识库m 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


Given the XML

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

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

<mx:Label text="{data.a.b}"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号