Robert here's an example
<?xml version="1.0"?>
<!-- Simple example to demonstrate the Alert control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
public function flexItem(item:Object):String
{ var s:String = "Harvard School";
return s;
}
]]>
</mx:Script>
<mx:ArrayCollection id="flexbrasil">
<mx:source>
<mx:Object nome="item" valor="200" imagem="photo.png"/>
<mx:Object nome="item 2" valor="100"/>
<mx:Object nome="item 3" valor="500"/>
<mx:Object nome="item 4" valor="140"/>
<mx:Object nome="item 5" valor="340"/>
</mx:source>
</mx:ArrayCollection>
<mx:DataGrid dataTipFunction="flexItem" dataProvider="{flexbrasil}">
<mx:columns>
<mx:DataGridColumn showDataTips="true" dataTipFunction="flexItem"
headerText="Column 1" dataField="nome"/>
<mx:DataGridColumn headerText="Column 2" dataField="valor"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
---
Igor Costa
On 2/23/07, Robert Chyko <[EMAIL PROTECTED]> wrote:
Nope, no dataTipFunction is declared anywhere.
-----Original Message-----
*From:* [email protected] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Doug Lowder
*Sent:* Thursday, February 22, 2007 6:23 PM
*To:* [email protected]
*Subject:* [flexcoders] Re: DataGridColumn showDataTips problem
Are you also setting the dataTipFunction property? That would cause
the bahavior you're seeing.
--- In [email protected] <flexcoders%40yahoogroups.com>, "Robert
Chyko" <[EMAIL PROTECTED]> wrote:
>
> I am trying to use the showDataTips property of the
DataGridColumn. The
> documentation states:
>
> "Datatips are tooltips designed to show the text that is too long
for
> the row. "
>
> I swear that in Flash, the similar functionality (whatever it was
called
> - not showDataTips) would only show the toolTip for a cell if the
text
> in the cell was wider than the width of the cell.
>
> The behavior I am seeing is that if I set showDataTips to true, the
> toolTip is always being shown, regardless of whether or not the
cells
> text is longer than the cell.
>
> Can anyone confirm/deny? Or am I just that thick...
>
> Thanks
>
> Bob Chyko
>
--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta