Solved

AdvancedDataGrid Summary row color

Posted on 2009-04-13
5
2,097 Views
Last Modified: 2012-05-06
I'm  doing grouping collection Tree View)  on my Datagrid and want to color the the root node, where I'm displaying the summary (i.e. count of records). How this can be done?
0
Comment
Question by:VKN9876
  • 4
5 Comments
 
LVL 37

Expert Comment

by:zzynx
ID: 24135734
You'll probably need to write your own item renderer.
http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_10.html
0
 

Author Comment

by:VKN9876
ID: 24142806
I'm not using itemrenderer. I'm just saying      summaryPlacement = "group";

I can write a stylefunction as follows

public function dataGrid_styleFunction (data:Object, column:AdvancedDataGridColumn) : Object
        {
         var output:Object;

           if ( data.children != null )
                  {
                    output = {color:0x081EA6, fontWeight:"bold", fontSize:14}
                 }


             return output;
}

How do I specify the entire row background color?
0
 
LVL 37

Expert Comment

by:zzynx
ID: 24145295
Have a look @ http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_04.html
There they talk about styling columns and styling rows.
0
 
LVL 37

Accepted Solution

by:
zzynx earned 500 total points
ID: 24145361
Oh, I think I understand what you mean.
The emphasis of your question is about BACKGROUNDcolor instead of color. Right?
I think this can help: http://weblogs.macromedia.com/pent/archives/2007/02/coloring_the_ba.html
0
 
LVL 37

Expert Comment

by:zzynx
ID: 24285700
thanx 4 axxepting
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
A procedure for exporting installed hotfix details of remote computers using powershell
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now