AdvancedDataGrid Summary row color

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?
VKN9876Asked:
Who is Participating?
 
zzynxConnect With a Mentor Software engineerCommented:
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
 
zzynxSoftware engineerCommented:
You'll probably need to write your own item renderer.
http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_10.html
0
 
VKN9876Author Commented:
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
 
zzynxSoftware engineerCommented:
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
 
zzynxSoftware engineerCommented:
thanx 4 axxepting
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.