I have the exact same setup…but nothing is being passed to the dataTipFunction…wondering if it’s because the dataprovider is not set until after the tree has initialized?

 

-Stace

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Brueckmann
Sent: Wednesday, July 13, 2005 1:38 PM
To: [email protected]
Subject: RE: [flexcoders] ToolTips on Tree Nodes?

 

Nevermind…I created a label maker function and set my tree component’s dataTipFunction to this function and the val object sent to the label maker function is the entire tree node, so I just return val.getProperty(“label”) (because the dataprovider of my tree is XML) and my data tips work perfectly now.

 

<mx:Script>

 

function dataTipMaker(val):String {

                                                return val.getProperty("label");

                                    }

</mx:Script>

 

<mx:Tree id="portfolioTree" dataProvider="{portfolios}" width="100%" height="400" showDataTips="true" dataTipFunction="dataTipMaker" />

 

robert l. brueckmann

senior web developer

merlin securities

595 madison avenue

new york, ny 10022

p: 212.822.4821
f: 212.822.4820




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to