The full code is :

private function myDataTip(data:Object):String {
     return "<B>Tung Chau</B>";
}

<controls:AdvancedDataGrid id="reportTable"
   groupIconFunction="reportArchiveGroupingIcon"   
defaultLeafIcon="{Icons.ReportArchiveIcon}" 
dataTipFunction="myDataTip" initialize="gc.refresh();" 
width="100%" height="100%">
  
<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:columns>
</controls:AdvancedDataGrid>

Please help.

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> I wrote my own custom dataTipFunction that return an HTML formatted 
> text, but it does not work. Please help!
> 
> private function myDataTip(data:Object):String {
>     return "<B>Tung Chau</B>";
> }
> 
> The result I saw was a raw "<B>Tung Chau</B>" instead of the bold 
text 
> format I want.
> 
> Please help.
> Tung Chau
>


Reply via email to