0
我需要在radixbuttons作爲itemRenderer在mx數據網格的幫助。我想成爲表格,在給定的時間只選擇一個單選按鈕,但我的數據網格允許選擇多個單選按鈕。我不想要這種行爲。RadioButton作爲ItemRenderer允許多個1選擇在mx Datagrid
I have also included a groupName to the radioButtons in the itemRenderer but still it doe4s not work.
Please have a look at my codes below and help me with this.
<mx:DataGrid id="myGrid" showHeaders="false" headerHeight="0"
fontSize="9" x="20" y="20" width="217" height="30">
<mx:columns>
<mx:DataGridColumn width="20" headerText="isDefault" dataField="@IS_DEFAULT">
<mx:itemRenderer>
<fx:Component>
<mx:HBox horizontalAlign="left">
<s:RadioButton selected="@{data.isDefault}" group="{outerDocument.rbg1}" horizontalCenter="0"/>
</mx:HBox>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>