Re: [flexcoders] Flex 4.5 - Cell background color in datagrid

2011-10-29 Thread Isabelle Loyer Perso













RE: [flexcoders] Flex 4.5 - Cell background color in datagrid

2011-10-29 Thread Sells, Fred
Define custom renderer for the cell's in question.  The renderer gets
the data for the entire row and can then compute the background color.
I've had trouble actually setting backgroundColor in renderer but
binding the backgroundColor to a private var and setting that variable
to the color works.

 



http://ns.adobe.com/mxml/2009"; 

xmlns:s="library://ns.adobe.com/flex/spark" 

xmlns:mx="library://ns.adobe.com/flex/mx" 

 horizontalScrollPolicy="off"

>



  



  

  



 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of isa_loyer
Sent: Saturday, October 29, 2011 4:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 4.5 - Cell background color in datagrid

 

  

Hi,

I load some data with httpservice.
In those data, I have a backgound color for each cell.
Can you explain how to do to change background color accordind data in
dataprovider?
I thinks I must use itemrender but I don't found how to use dataprovider
data to do that.

Thaks for helping.





[flexcoders] Flex 4.5 - Cell background color in datagrid

2011-10-29 Thread isa_loyer
Hi,
 
I load some data with httpservice.
In those data, I have a backgound color for each cell.
Can you explain how to do to change background color accordind data in 
dataprovider?
I thinks I must use itemrender but I don't found how to use dataprovider data 
to do that.
 
Thaks for helping.