AdvancedDataGrid does not allow me to use column level itemrenderizer nor style function using which i should fill the background color of the column on specific conditions on each row .
I tried the style function where it changes the text color but not the background color for the cell >i do not have the idea about how to use a itemrender to override properties of ADG .
Please help me i tried all possible ways and this is my last hope to get some solution My code:
<mx:AdvancedDataGridColumnGroup headerText="Time Frame">
<mx:AdvancedDataGridColumn dataField="region" headerText="Region"/>
<mx:AdvancedDataGridColumn dataField="cat1" headerText="Cat 1"/>
<mx:AdvancedDataGridColumn dataField="cat2" headerText="Cat 2"/>
</mx:AdvancedDataGridColumnGroup>
<mx:AdvancedDataGridColumn id="levelfield" dataField="level" headerText="level" styleFunction="myColStyleFunc" />
<mx:AdvancedDataGridColumnGroup headerText="Role">
<mx:AdvancedDataGridColumn dataField="operation" headerText="Operation" />
</mx:AdvancedDataGridColumnGroup>
Function
public function myColStyleFunc(data:Object, col:AdvancedDataGridColumn):Object
{
if(data["level"]== 'Level 1'){
return {backgroundColor:0x00FF00};
}