Could you try perhaps setting a bindable
prop for the labels? I assume you’re done dataProvider.refresh() and its closes
the nodes…
Or you could look into the XMLListCollection
classes and do a notifyItemUpdate to the dataprovider if you are just changing
a prop on the existing DP rather than the entire dp.
Just throwing out wild ideas, but not sure
if the actual implementation will work.
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ghislain Simard
Sent: Tuesday, February 07, 2006
1:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree
dataprovider refresh
I am trying to maintain the
state of open nodes in a tree control
after the dataprovider has changed. In a
multilingual application
tree data is stored in xml files, per
language. When the user toggles
the language a new xml file is loaded for the
selected language,
unfortunately the tree control collapses all the
nodes. How can I
maintain the current open/closed state of each
node so that only the
text changes and not the overall state of the
tree.
Thanks for any help.
If you have an example, that would be great.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|