Is the combobox rendereIsEditor=true or is it a popup editor?  Maybe you
should post some of the relevant code.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Thierry V.
Sent: Tuesday, November 20, 2007 1:13 AM
To: [email protected]
Subject: [flexcoders] dataGrid cellRenderer and PropertyChangeEvent

 

Hello,

I have added a combobox cellRenderer to an editable datagrid like in 
this example. I use the propertyChangeEvent of the ObjectProxies array 
passed as dataprovider to update the data change, but for the combobox, 
the event seems not triggered.

I think it's because the value of the comboBox is changed 
programmatically, and have tried to simulate an event like :

public function onChange():void
{
var index:int = editor.selectedIndex;
result = uint( dpValue[index].data );

//dispatch an event to alert the update
editor.dispatchEvent( PropertyChangeEvent.createUpdateEvent(
dpValue[index],
"refid",
null,
result
) );
}

but the result is the same, event is not triggered and the value is not 
updated.

Any idea about the way to have a correct update ?

Thanks in advance

Thierry

 

Reply via email to