hello,
I need to dynamically change the state of my DataGridColumn's itemRenderer,
which is a ComboBox.
In respond to a click, I need to set selected item to "Accepted". For some
reason it setting the correct value only once in 5-10 clicks.
Here is my code:
public function onAcceptAll():void{
var factory:ClassFactory =
new ClassFactory(com.myname.components.MyComboBox);
factory.properties = { text: 'Accepted' };
col.itemRenderer = factory;
}
<mx

ataGridColumn headerText="Accept/Reject" textAlign="center" id="col"
dataField="status"
itemRenderer="com.myname.components.MyComboBox"/>
Does anyone know if I have to add anything else, like refresh or invalidate?
Thanks,
Michael.