Use labelFunction to pull the text element.  You may also need a custom
datadescriptor to block seeing the text elements as children.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of qau_yasir
Sent: Friday, April 11, 2008 3:17 AM
To: [email protected]
Subject: [flexcoders] how we can show the data in a flex tree that is
not attribute

 

Hi
I have an XML data as fellow. I want to provide it to treeControl.
<a>
<b>
<c>
<ID>10000</ID>
<FirstName>FirstName</FirstName>
<LastName>LastName</LastName>

</c>

<c>
<ID>Name</ID>
<FirstName>FirstName</FirstName>
<LastName>LastName</LastName>

</c>
</b>
</a>

The Tree should Display Two branches <c> and these brances should
display 1000, First Name and lastName.

I know that if we have an attribute of tree we can set lableField
property of tree to display the attribute in the tree. But in case of
Standard XML how to display the data not the attribute?

Please help.
Thanks and Regards
YM

 

Reply via email to