[flexcoders] Tree itemRenderer not displaying as a tree?

2008-06-18 Thread S B
Why doesn't the following mx:Tree display as a tree? Instead, all nodes have the same indentation for some reason. Thanks! mx:XMLList id=xml_tree_legend_data node label=Medication short=med node label=Quantity short=qty/ node label=Unit short=unit/

RE: [flexcoders] Tree itemRenderer not displaying as a tree?

2008-06-18 Thread Alex Harui
Because indentation is handled by the renderer and label doesn't know how to do that. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of S B Sent: Wednesday, June 18, 2008 9:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree

Re: [flexcoders] Tree itemRenderer not displaying as a tree?

2008-06-18 Thread S B
How can I fix that? Or, how can I change each node's label based on two attributes in the XMLList? - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, June 18, 2008 10:43:22 AM Subject: RE: [flexcoders] Tree itemRenderer not displaying

RE: [flexcoders] Tree itemRenderer not displaying as a tree?

2008-06-18 Thread Tracy Spratt
for Flex 3. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of S B Sent: Wednesday, June 18, 2008 2:20 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Tree itemRenderer not displaying as a tree? How can I fix

RE: [flexcoders] Tree itemRenderer not displaying as a tree?

2008-06-18 Thread Alex Harui
You can use labelFunction to merge two attributes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of S B Sent: Wednesday, June 18, 2008 11:20 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Tree itemRenderer not displaying