I have an AdvancedDataGrid where I'm making use of summary rows will 3
levels of nesting. What I'm trying to do now is simple: make the summary
rows appear bold and have the lowest-level rows appear normal. After a bit
of digging, I found one way to do it using the following style function:

private function customStyleFunction(data:Object,
column:AdvancedDataGridColumn):Object
{
    if (analysisGrid.dataProvider.source.canHaveChildren(data) == true) {
        return { fontWeight:"bold" };
    }

    return {};
}

This works the way I want it, but it doesn't seem very efficient. Every time
I expand a level in the adg, the text appears either bold or normal for a
moment until Flex cycles through the newly displayed data to set the styles.
Some of the summaries make use of the same columns as lower-level rows, so I
don't know if using AdvancedDataGridRendererProvider renderers alone would
help.

Is there a better way to style adg summary rows?

Thanks!
Kevin

Reply via email to