0
<s:DataGroup id="group" dataProvider="{data}" >
<s:itemRenderer>
<s:RadioButton value="{group.currentItem}"/>
</s:itemRenderer>
</s:DataGroup>
我想使用DataGroup
呈現多個RadioButton
。如何在Flex中使用DataGroup呈現重複的RadioButtons?
問題1:FlashBuilder顯示錯誤:In initializer for 'itemRenderer', type spark.components.RadioButton is not assignable to target type 'mx.core.IFactory'.
問題2:group.currentItem
沒有定義。我怎樣才能得到ArrayCollection
數據的實際項目?