Tel me try Amy, I will let you know. Alex I checked most of your examples most likely have seen yours. I will try that one too an let you know my impression about it.
On Mon, Jul 14, 2008 at 6:03 PM, Amy <[EMAIL PROTECTED]> wrote: > --- In [email protected] <flexcoders%40yahoogroups.com>, > "Vivian Richard" <[EMAIL PROTECTED]> > wrote: > > > > > Hey Amy great getting an email from you. Man I guess you > > paid google : every time I search anything regarding ADG you > > blog pops up. :-) Thanks for taking time to share that with us. > > > > As I found all your examples are addressing the whole row, > > I needed something for individual cells. I tried to work > > with your code and put the itemrenderer in ADGColumn but > > did not work accordingly. My requirement is very simple: all > > my ADGColumn will have the same itemrenderer and if the > > Column source has a nonempty string it will put the background > > color else leave it as is. > > I actually didn't provide any examples, just talked about the general > principles, unless you're talking about the posts that I linked to > that didn't quite do what I wanted. > > The styleFunction will do whatever you tell it to, so you can very > easily use that to style the columns based on the dataField that is a > property of the object you get in the second parameter. > > So you could use something like this: > > private function styleMyRenderers(data:Object, > col:AdvancedDataGridColumn){ > if (data[col.dataField]=='foo'){ > return {backgroundColor:0xFF0000};//red > } > return {backgroundColor:0x00FF00};//green > } > > HTH; > > Amy > > >

