Maybe you can use one of the examples on my blog?

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
pbrendanc
Sent: Wednesday, November 12, 2008 10:50 AM
To: [email protected]
Subject: [flexcoders] DataGrid ItemRenderer - Reuse with Parameters vs Cloning


I have a datagrid containing rows with multiple date columns. I need
to change the cell background color based on the date value (e.g. >90
days old is red etc.)

However the rules vary based on the column - for now I've created
similar custom item renderers with different business rules based on
the date value. (e.g. For Col 1 - use red if > 90 days; for Col 2 use
red if > 15 days etc). This results in unnecessary duplication of code.

Is there a way to pass a parameter to a Custom Item Renderer so I can
reuse it with multiple columns.

(BTW - I don't have access to the Advanced Data Grid so that is not an
option).

TIA,
Patrick

Reply via email to