Solved

color coded datagrid

Posted on 2011-09-19
6
235 Views
Last Modified: 2012-05-12
Hi guys

I have a requirment where i have a datagrid. the datagrid boxes should be color coded

for example
if status == Delinquent  ,it should be red
if status == yellow , it should be yellow.
I have attached a sample image.
 colorcoded gridAny idea how i can do that?


thanks
0
Comment
Question by:royjayd
  • 4
6 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36561444
Override DataGrid and you can get control on drawBackgroundColor
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36561454
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36561464
In your case you need modify getColor function

private function getColor(itemRenderer:IListItemRenderer, defaultColor:Number):Number{
                  if(itemRenderer && itemRenderer.data.status == "Delinquent ")
                        return 0xff0000;
if(itemRenderer && itemRenderer.data.status == "yellow ")
                        return 0xffff00;
                  return defaultColor;
            }
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:royjayd
ID: 36561953
do i need to modify  drawBackgroundColor () also ?
0
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36562259
no only getColor function
0
 
LVL 37

Expert Comment

by:zzynx
ID: 36566358
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Refresh Image 2 30 949
Dashboard Examples 1 586
adobe air 1 301
displaying tif image on flex side 1 309
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question