tooltip flex4

Posted on 2011-04-20
Last Modified: 2012-06-27
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...
Question by:arigs
    LVL 28

    Expert Comment

    by:Pravin Asar


    LVL 17

    Accepted Solution

    LVL 28

    Expert Comment

    by:Pravin Asar
    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="" layout="absolute" initialize="doInit();">
    <!![CDATA[import mx.collections.ArrayCollection; // this holds the grid data
    private var myData:ArrayCollection = new ArrayCollection();private function doInit():void{

    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:DataGrid id="dGrid"  dataProvider="{myData}"  visible="true" dataTipFunction="buildToolTip">
    <mx:DataGridColumn dataField="fname" headerText="FirstName" showDataTips="true" />
    <mx:DataGridColumn dataField="lname" headerText="LastName" showDataTips="true" />

    Author Closing Comment

    that link was helpful

    Author Comment


               Thx for ur help

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
    This post first appeared at Oracleinaction  ( Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now