I'd use a ViewStack. Tracy
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Carter Sent: Friday, October 17, 2008 6:38 AM To: [email protected] Subject: [flexcoders] How to display message in empty Tree component I'm using a Tree component with a dataProvider set using an XML object. Also showRoot=false. If I set using a childless XML object then one item is shown in the tree. That's a bit weird but it sort of allows me a way to display my message (using labelFunc) to "No items". But then I have to be careful with all my event handlers because this item is not really a real item for my purposes. However, if I use an XML with, say, one child, then that child is displayed. If I then remove that child, then nothing is displayed (and so I see no way to display the message). What is the best way to display a message (like "No items") in the Tree component should the dataprovider be empty? -- View this message in context: http://www.nabble.com/How-to-display-message-in-empty-Tree-component-tp2 0030878p20030878.html <http://www.nabble.com/How-to-display-message-in-empty-Tree-component-tp 20030878p20030878.html> Sent from the FlexCoders mailing list archive at Nabble.com.

