For single cell, a simple cell renderer is easy enough. A couple ways to
skin that cat too. I've used
backgroundColor="{ data.isActive ? color1 : color2}" in a inline
renderer. A pure AS renderer would probably override the data
mutator...something like this
override public function set data(value:Object):void
{
_data = value;
this.setStyle('backgroundColor',data.isActive ? color1 :
color2);
}
or maybe override another method in the component such as
commitProperties();
Now, for the full row, can use this method
http://www.mikenimer.com/index.cfm/2006/10/3/BackgroundRowColor-DataGrid-component
DK
On 4/5/07, Rick Root <[EMAIL PROTECTED]> wrote:
>
> I'd like to apply a background color to rows in a datagrid based on data
> in
> that row.
>
> But I have no idea how to do it.
>
> For example: http://www.it.dev.duke.edu/go/codebook
>
> If you select a code table, SOME of the codes are active, some are
> inactive... I would love for the inactive codes to have a pink shaded
> background.
>
> Can someone point me in the right direction?
>
> --
> CFMBB - Coldfusion Message Boards, Version 1.21 Now Available!
> http://www.cfmbb.org
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:3850
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37