Hi All,
I would like to add s String value with an icon to the the same cell or as 
colimn valuse of an ADG , how can I do that ? Any sample is appreciated. Now I 
can add the string and icon as seperate valuues one at a time, but I need to 
add both together.
thanks in advance,
Ann.
 
below is the ADG
<mx:AdvancedDataGrid id="srvTable" width="100%" height="100%" color="0x323232" 
dragEnabled="true" dropEnabled="true"
enabled="true" showHeaders="true" styleName="imageStyle" sortExpertMode="true"
displayItemsExpanded="false" variableRowHeight="true" wordWrap="false" 
groupIconFunction="treeIconFunc" styleFunction="treeStyleFunc" 
dataTipFunction="headerDataTipFunction" >


<mx:dataProvider>
<mx:HierarchicalData source="{dp}"/> 
</mx:dataProvider> 

<mx:columns>

<mx:AdvancedDataGridColumn id="ps" dataField="PService" showDataTips="true" 
width="125" visible="true" headerText="Service" textAlign="left" 
sortCompareFunction ="sortPService" sortable="true" />
<mx:AdvancedDataGridColumn id="pr" dataField="Priority" showDataTips="true" 
headerText="Priority" width="65" textAlign="center" sortable="true" 
sortCompareFunction ="sortPriority" /> 
<mx:AdvancedDataGridColumn id ="csla" dataField="CurrentSLA" 
showDataTips="true" headerText="Current SLA" width="35" textAlign="center" 
sortable="true" sortCompareFunction ="sortCSIcons"/> 
<mx:AdvancedDataGridColumn id="hlth" dataField="Health" showDataTips="true" 
headerText="Health" width="25" sortable="true" sortCompareFunction 
="sortHIcons"/> 
<mx:AdvancedDataGridColumn id="qlty" dataField="Quality" showDataTips="true" 
headerText="Quality" width="45" sortable="true" sortCompareFunction 
="sortQIcons"/>
<mx:AdvancedDataGridColumn id="rsk" dataField="Risk" showDataTips="true" 
headerText="Risk" width="32" sortable="true" sortCompareFunction 
="sortRIcons"/> 
<mx:AdvancedDataGridColumn id="av" dataField="Avail" showDataTips="true" 
headerText="Availability [24 hours]" width="70" textAlign="center" 
sortable="true" sortCompareFunction="sortAvail" />
<mx:AdvancedDataGridColumn id="opm" dataField="OpMode" showDataTips="true" 
headerText="Operational Mode" width="65" textAlign="center" sortable="true" 
sortCompareFunction ="sortOpMode" /> 
<mx:AdvancedDataGridColumn id ="ddcol" dataField="dd" showDataTips="true" 
headerText="Launch To" width="65" textAlign="left" sortable="false" />

</mx:columns>
<mx:rendererProviders> 
<mx:AdvancedDataGridRendererProvider dataField="CurrentSLA" column="{csla}" 
renderer="SLAImageRenderer" /> 
<mx:AdvancedDataGridRendererProvider dataField="Health" column="{hlth}" 
renderer="mx.controls.Image" /> 
<mx:AdvancedDataGridRendererProvider dataField="Quality" column="{qlty}" 
renderer="mx.controls.Image" /> 
<mx:AdvancedDataGridRendererProvider dataField="Risk" column="{rsk}" 
renderer="mx.controls.Image" /> 
<mx:AdvancedDataGridRendererProvider dataField="dd" column="{ddcol} " 
renderer="PopUpMenuButtonRenderer" /> 
</mx:rendererProviders>

</mx:AdvancedDataGrid> 
.

Reply via email to