Has anyone tried the background item renderers from my blog in ADG?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, July 14, 2008 5:59 PM
To: [email protected]
Subject: RE: [flexcoders] Re: advanceddatagrid itemrenderer refering
current column's data

 

Ohhh, yes, that is right, the default item render for ADG does not
support a background color, sorry, I forgot that.

 

So yeah, an item renderer looks like the way to go on that.  Google
this, surely someone has an example.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Vivian Richard
Sent: Monday, July 14, 2008 8:42 PM
To: [email protected]
Subject: Re: [flexcoders] Re: advanceddatagrid itemrenderer refering
current column's data

 


    
    Thanks for the response Tracy. By styling you are referring to the
    stylefunction? My understanding that that the stylefunction is only
    meant for the text not the background color.





On Mon, Jul 14, 2008 at 5:04 PM, Tracy Spratt <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

The new styling in ADG might be a better way to do this.

Tracy

 

________________________________

From: [email protected] <mailto:[email protected]>
[mailto:[email protected] <mailto:[email protected]> ]
On Behalf Of Vivian Richard
Sent: Monday, July 14, 2008 7:42 PM
To: [email protected] <mailto:[email protected]> 
Subject: Re: [flexcoders] Re: advanceddatagrid itemrenderer refering
current column's data

 




   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]
<mailto:[EMAIL PROTECTED]> > wrote:

--- In [email protected] <mailto: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-
<http://flexdiary.blogspot.com/2008/06/musings-on-> 
advanceddatagrid-part-1.html

HTH;

Amy

 

 

 

Reply via email to