[flexcoders] one renderer forcing update of another

2009-01-19 Thread darylgmyers
I have a datagrid with a renderer in each of 2 columns.  The first 
column displays a combobox.  When the combobox is changed on one row I 
want to update the data in the second column on the same row.  Is there 
a way to do this?



RE: [flexcoders] one renderer forcing update of another

2009-01-19 Thread Tracy Spratt
Yes.  The core concept here is that itemRenderers must be data driven to
work correctly.  If your first renderer updates the dataProvider item,
then the second one, which should be driven by the dataProvider, will
update automatically.  

 

Remember, all itemRenderers have access to the entire row's data, via
the data property.

 

How advanced are your itemRenderer skills?  Do you understand about the
set data() override, the call to invalidateProperties(),
commitProperties(), createChildren() and updateDisplayList() methods?

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of darylgmyers
Sent: Monday, January 19, 2009 4:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] one renderer forcing update of another

 

I have a datagrid with a renderer in each of 2 columns. The first 
column displays a combobox. When the combobox is changed on one row I 
want to update the data in the second column on the same row. Is there 
a way to do this?