I have a custom item render setup for a datagrid cell.  What I would 
like to happen is that the background color of the render to be based on 
a value from an array determined by the data.severity integer.  How 
might one do this?

TIA
Ian

<mx:DataGridColumn dataField="severity" headerText="Severity" 
itemRenderer="Components.Renderers.severity"/>

Component.Renderers.severity.mxml
---------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml";
        textAlign="center"
        verticalGap="0" horizontalGap="0">
        <mx:Label text="{data.severity}" width="100%" minHeight="0" />  
</mx:VBox>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
CF 8 – Scorpio beta now available, 
easily build great internet experiences – Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4352
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to