tooltip flex4

Hi Experts,

                   here is my problem, I need to display a tooltip in a particular column of advanceddatagrid. The thing is when we mouse over any value of that column we need to dispaly that corresponding value as tooltip. Thx in advance...
arigsAsked:
Who is Participating?
 
deepanjandasConnect With a Mentor Commented:
0
 
Pravin AsarPrincipal Systems EngineerCommented:
set

showDataTips="true"

0
 
Pravin AsarPrincipal Systems EngineerCommented:
Here is simple example for you with custom tooltip

Although this one was written for DataGrid.

Same techniques works for AdvancedDataGrid



<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="doInit();">
<mx:Script>
<!![CDATA[import mx.collections.ArrayCollection; // this holds the grid data
[Bindable]
private var myData:ArrayCollection = new ArrayCollection();private function doInit():void{
myData.addItem({fname:"Joe",lname:"Bloggs"});
myData.addItem({fname:"Joe1",lname:"Bloggs"});
}

private function buildToolTip(item:Object):String{
var myString:String = "";
if(item != null)
{
myString = myString + "Firstname : " + item.fname + "\n";
myString = myString + "Lastname : " + item.lname + "\n"
}
return myString;
}
]]>
</mx:Script>
<mx:DataGrid id="dGrid"  dataProvider="{myData}"  visible="true" dataTipFunction="buildToolTip">
<mx:columns>
<mx:DataGridColumn dataField="fname" headerText="FirstName" showDataTips="true" />
<mx:DataGridColumn dataField="lname" headerText="LastName" showDataTips="true" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
0
 
arigsAuthor Commented:
that link was helpful
0
 
arigsAuthor Commented:
@pravinasar:

           Thx for ur help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.