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. Regards.... On Mon, Jul 14, 2008 at 3:49 PM, Amy <[EMAIL PROTECTED]> wrote: > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, > "hworke" <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, in a advanceddatagrid I need to put same > > background color if the the cell value is > > not empty string. In the itemrenderer all I > > need to check is if the current column value > > is null or not. I know how to refer a value > > of the data object in the itemrenderer like: > > data.whateverParameter. But in this case I > > need to refer the current column value not > > a fixed parameter of the data object. How do > > I refer to the current column vale in the > > itemrenderer? > > > > If you implement IDropInListRenderer, you can get access to the > DataGridListData properties. Also, AdvancedDataGrid supports a style > function, that you can use from outside the ADG to set styles. For > more on that http://flexdiary.blogspot.com/2008/06/musings-on- > advanceddatagrid-part-1.html > > HTH; > > Amy > > >