Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>The selected button becomes deselected, and unselected ones become selected.</p> </blockquote> <p>Is this problem occurring only for those radio buttons whose <code>selected</code> state was manually changed by the user? In that case it is because flex resets its <code>selected</code> state based on the value mentioned in the declaration when a <code>RadioButton</code> is reused. So even if you select/deselect a ratio button in the Periode 1 column, flex resets it to <code>{data.period1}</code> when you scroll away and come back. Making the column editable to save the modifications back to the data provider might work. Try changing the column declaration to:</p> <pre><code>&lt;mx:AdvancedDataGridColumn headerText="Periode 1" dataField="" width="200" editable="true" rendererIsEditor="true" editorDataField="selected"&gt; </code></pre> <p>EDIT: Try this - attempting to change the data provider when the radio button is selected. code written from memory and not tested - might contain bugs.</p> <pre><code>&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 id="rb" name="period1" value="{data}" selected="{data.period1}" group="{data.radioBtnGrpArray[0]}" visible="{data.showRadioButton}" change="outerDocument.handleRadio1(this);"/&gt; &lt;/mx:HBox&gt; &lt;/mx:Component&gt; &lt;/mx:itemRenderer&gt; &lt;/mx:AdvancedDataGridColumn&gt; //in a script tag outside the datagrid. public function handleRadio1(renderer:IListItemRenderer):void { var index:Number = adDataGrid_rptdata.itemRendererToIndex(renderer); this.competenceCollection[i].period1 = renderer.rb.selected; } </code></pre>
    singulars
    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.
    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