Link to home
Start Free TrialLog in
Avatar of VKN9876
VKN9876

asked on

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?
Avatar of zzynx
zzynx
Flag of Belgium image

You'll probably need to write your own item renderer.
http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_10.html
Avatar of VKN9876
VKN9876

ASKER

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?
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.
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanx 4 axxepting