Use dataTips for DataGrid rather than tooltip. You can determine what
each dataTip displays for a particular row by specifying the
dataTipField or dataTipFunction.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Manu Dhanda
Sent: Sunday, June 08, 2008 9:16 PM
To: [email protected]
Subject: [flexcoders] ToolTip for each row in a DataGrid

 


Hii,

How can I make a tooltip that will work for each row of datagrid??
Right now, the tooltip is displaying the same data for each row, as I
point
to some row.

So, it is picking the data from the very first row that I point and once
I
move to any other row, it displays the same data. And once I click on
some
row or anywhere, it disappears and doesn't show up when I 'll move my
pointer to other rows.

Here are the code lines:

public function init():void
{
flatADG.addEventListener(ToolTipEvent.TOOL_TIP_SHOW, myToolTipChanger)
}

public function myToolTipChanger(event:ToolTipEvent):void {
ToolTipManager.currentToolTip.text = "Info:, " + 

mx.core.Application.application.tabPanel.recordsPanel.flatADG.selectedIt
em.flatId;
}

<mx:AdvancedDataGrid id="flatADG" rowHeight="26"
dataProvider="{ModelLocator.ALL_FLATS}" 
change="trackSelectedItem(event)" toolTip=" " width="100%"
height="100%">

Any tips?? for this tooltip??

Thanks,
Manu.

-- 
View this message in context:
http://www.nabble.com/ToolTip-for-each-row-in-a-DataGrid-tp17726100p1772
6100.html
<http://www.nabble.com/ToolTip-for-each-row-in-a-DataGrid-tp17726100p177
26100.html> 
Sent from the FlexCoders mailing list archive at Nabble.com.

 

Reply via email to