This content has been marked as final. Show 3 replies
The list components re-use the item renderers when you scroll. This means that the checkbox state must be driven by the dataProvider.
Your checkBox renderer must override the set Data method and set the selected property based on a value in the dataProvider item.
When the user clicks the checkbox, the renderer must updte the dataProvider item with the value.
Here is a full example:
Thanks. That solved it. It was necessary to also add this call in the set data() method that you showed:
super.data = oData;
I have a similar problem (Checked CheckBoxes moving around in DataGrid)when i use itemRenderer as mx.controls.CheckBoxin below code.
<mx:DataGridColumn width="40" itemRenderer="mx.controls.CheckBox" rendererIsEditor="true"
headerText="UPMIX" textAlign="right" editorDataField="selected"
Can u send me a sample code that u have used using custom itemRenderer.