Hmm, so you are receiving nodes with child arrays and they are correct in the web service but wrong in the Tree?  The Tree shouldn’t be reversing the order of any arrays.  What if you took the WebService result as literal XML and gave it to the Tree (resultFormat=”xml”)?  Maybe the deserialization into objects is mucking the order up and leaving it in XML form would work better?

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of everesnet
Sent: Wednesday, June 22, 2005 9:57 AM
To: [email protected]
Subject: [flexcoders] Sort Order of mx.controls.Tree

 

Hello,

I'm trying to use Tree with WebService result, and I can show that.
Tree's treeDataProvider keeps sort order.
I mean treeDataProvider has arrays that is ordered correct.

But tree's nodes are showing onother order of rows.
It's same as tree's backingObject's order of rows.

I just set WebService result to dataProvider like below.
<mx:Tree dataProvider="{WebService.getDataResult}" />

How can I set dataProvider's order of rows to tree's.


thanx in advance,

makoto tsuyuki






--
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