Hi,
My AdvancedDataGrid has grouping collection set up during
intialization.I tried to change the label's color of all group or
branch nodes, but the color got applied to the labels of child nodes
also. Is this a bug?
<controls:AdvancedDataGrid id="reportTable"
defaultLeafIcon="{myLeftIcon}"
groupIconFunction="reportArchiveGroupingIcon"
dataTipFunction="generateReportDataTip"
initialize="gc.refresh();"
width="100%" height="100%">
<controls:groupItemRenderer>
<mx:Component>
<mx:AdvancedDataGridGroupItemRenderer color="0xAAB3B3" />
</mx:Component>
</controls:groupItemRenderer>
<controls:dataProvider>
<mx:GroupingCollection id="gc" source="{reportArchives}">
<mx:grouping>
<mx:Grouping id="grouping">
<mx:GroupingField
name="{arrangeBySelection.selectedItem.data}"/>
</mx:Grouping>
</mx:grouping>
</mx:GroupingCollection>
</controls:dataProvider>
<controls:columns>
<mx:AdvancedDataGridColumn id="nameCol" dataField="name"
headerText="{getString('label.reportName')}" showDataTips="true"
minWidth="300"/>
<mx:AdvancedDataGridColumn id="sDateCol"
dataField="startDate" labelFunction="formatStartDate"
headerText="{getString('label.reportStartDate')}" showDataTips="true"
width="100"/>
<mx:AdvancedDataGridColumn id="eDateCol" dataField="endDate"
labelFunction="formatEndDate" headerText="{getString
('label.reportEndDate')}" showDataTips="true" width="100"/>
<mx:AdvancedDataGridColumn id="createdOnCol"
dataField="createdOn" labelFunction="formatCreatedOnDate"
headerText="{getString('label.createdOn')}" showDataTips="true"
width="100"/>
...
</controls:AdvancedDataGrid>
Note: "0xAAB3B3" is a light grey color.