Recommended practice is to call itemToDataTip on the List to get the text of 
the datatip.  If dataTipField or dataTipFunction is not set correctly you may 
still get [object Object]

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of Wesley Acheson
Sent: Thursday, September 17, 2009 2:16 PM
To: [email protected]
Subject: Re: [flexcoders] ItemRenderer killing datatips in List?



Is there something to implement because we usually get Object[object] as a data 
tip.

Regards,

Wes
On Thu, Sep 17, 2009 at 5:53 AM, Alex Harui 
<[email protected]<mailto:[email protected]>> wrote:


The renderer is responsible for showing datatips.  You can see how it is done 
in the default renderer and decide how you want to implement it in your custom 
renderer.



Alex Harui

Flex SDK Developer

Adobe Systems Inc.<http://www.adobe.com/>

Blog: http://blogs.adobe.com/aharui



From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of bgamblin
Sent: Wednesday, September 16, 2009 11:56 AM
To: [email protected]<mailto:[email protected]>
Subject: [flexcoders] ItemRenderer killing datatips in List?





I've got an object that descends from List, and uses an itemRenderer. Recently, 
I tried adding datatips to it, but nothing shows up. When I set it to use a 
datatipFunction, the function never gets called.

If, however, I remove the itemRenderer, datatips show up properly. Has anybody 
seen this sort of thing before?

(Note: the ItemRenderer creates two objects, but neither one short-circuits 
mouse events or have datatip info of their own)



Reply via email to