Hi Flex Friends,
Datagrid column having itemRenderer, This itemRenderer class with
display one icon and label.
showDataTips are not working for the Columns having ItemRenderers.
Is there any solution where we can use both showDataTips and
ITemRenderer for DataGridColumn
Sample code:
<-DATAGRID->
<mx:DataGrid >
<mx:columns>
<mx:DataGridColumn dataField="Artist" headerText="Artist"/>
<mx:DataGridColumn dataField="Price" headerText="Price"
showDataTips="true" dataTipFunction="showTrunkatedText1"/>
<mx:DataGridColumn dataField="Album" headerText="Album"
showDataTips="true" dataTipFunction="showTrunkatedText"
itemRenderer="myItemRendererClass"/>
</mx:columns>
</mx:DataGrid>
<-ItemRenderer class->
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"
verticalScrollPolicy="off"
horizontalScrollPolicy="off"
verticalAlign="middle">
<mx:HBox>
<mx:Image source="@Embed
(source='ICO16_INFORMATION.png')"/>
<mx:Label text="{data.Album}"/>
</mx:HBox>
</mx:HBox>
Thanks in Advance.
Satya