Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating a column of RadioButtons in Adobe Flex
    primarykey
    data
    text
    <p>I am having an un-predictable behavior of creating radio buttons in advancedDataGrid column using itemRenderer. Similar kind of problem has been reported at <a href="https://stackoverflow.com/questions/112036/creating-a-column-of-radiobuttons-in-adobe-flex">Creating a column of RadioButtons in Adobe Flex</a>. I tried to use the same procedure i.e. bind every radio button selectedValue and value attributes with the property specified in the property of the associated bean but still facing the problem. </p> <blockquote> <p>The button change values! The selected button becomes deselected, and unselected ones become selected.</p> </blockquote> <p>Here is the code of my advancedDataGrid:</p> <pre><code>&lt;mx:AdvancedDataGrid id="adDataGrid_rptdata" width="100%" height="100%" dragEnabled="false" sortableColumns="false" treeColumn="{action}" liveScrolling="false" displayItemsExpanded="true" &gt; &lt;mx:dataProvider&gt; &lt;mx:HierarchicalData source="{this.competenceCollection}" childrenField="competenceCriteria"/&gt; &lt;/mx:dataProvider&gt; &lt;mx:columns&gt; &lt;mx:AdvancedDataGridColumn headerText="" id="action" dataField="criteriaName" /&gt; &lt;mx:AdvancedDataGridColumn headerText="Periode 1" dataField="" width="200"&gt; &lt;mx:itemRenderer&gt; &lt;mx:Component&gt; &lt;mx:HBox horizontalAlign="center" width="100%" verticalAlign="middle"&gt; &lt;mx:RadioButton name="period1" value="{data}" selected="{data.period1}" group="{data.radioBtnGrpArray[0]}" visible="{data.showRadioButton}" /&gt; &lt;/mx:HBox&gt; &lt;/mx:Component&gt; &lt;/mx:itemRenderer&gt; &lt;/mx:AdvancedDataGridColumn&gt; &lt;mx:AdvancedDataGridColumn headerText="Periode 2" dataField="" width="200"&gt; &lt;mx:itemRenderer&gt; &lt;mx:Component&gt; &lt;mx:HBox horizontalAlign="center" width="100%" verticalAlign="middle"&gt; &lt;mx:RadioButton name="period2" value="{data}" selected="{data.period2}" group="{data.radioBtnGrpArray[1]}" visible="{data.showRadioButton}" /&gt; &lt;/mx:HBox&gt; &lt;/mx:Component&gt; &lt;/mx:itemRenderer&gt; &lt;/mx:AdvancedDataGridColumn&gt; &lt;mx:AdvancedDataGridColumn headerText="Periode 3" dataField="" width="200"&gt; &lt;mx:itemRenderer&gt; &lt;mx:Component&gt; &lt;mx:HBox horizontalAlign="center" width="100%" verticalAlign="middle"&gt; &lt;mx:RadioButton name="period3" value="{data}" selected="{data.period3}" group="{data.radioBtnGrpArray[2]}" visible="{data.showRadioButton}" /&gt; &lt;/mx:HBox&gt; &lt;/mx:Component&gt; &lt;/mx:itemRenderer&gt; &lt;/mx:AdvancedDataGridColumn&gt; &lt;/mx:columns&gt; &lt;/mx:AdvancedDataGrid&gt; </code></pre> <p>Any work around is highly appreciated in this regard!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload