1
有人可以帮助您在Flex MX数据网格中循环显示单选按钮项目渲染器吗?如何在Flex中的数据网格中循环显示单选按钮项目渲染器
我的数据网格的代码如下:
<mx:DataGridColumn width="20" headerText="isDefault" dataField="IS_DEFAULT">
<mx:itemRenderer>
<fx:Component>
<mx:HBox horizontalAlign="left">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.controls.listClasses.ListData;
protected function chk1_changeHandler(event:Event):void
{
}
]]>
</fx:Script>
<mx:RadioButton id="chk1" selected="{data.IS_DEFAULT == 'N' ? false : true}"
groupName="{outerDocument.rbg11}" change="chk1_changeHandler(event)" horizontalCenter="0"/>
</mx:HBox>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
Thanks for helping.