So, I'm trying to figure out how to refesh a tree's DataProvider and keep it open.
I thought trapping the trees.opentItems was my answer. I'd trap the value before the refresh, then set it back to that value after the refesh:
tempOpen = mainTree.openItems;
mainTreeDP = event.result;
mainTree.validateNow();
mainTree.openItems = tempOpen;
But that didn't work.
I think the reason why is because the code gets executed before the tree display updates itself.
My dilemna now seems twofold:
1. I take it there's not a built in way to regress a tree back to it's open states?
2. How can I know when the update to the display is done, so I can manually traverse the tree and reopen everything?
The functionality is there because if you expand every node, the collapse the root, then open the root, everything is still expanded. If I can just figure out how to mimic that in my ActionScript, I'd be set.
Any ideas?
Thanks,
Tom
__._,_.___
--
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
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

