As a last resort, you can re-assign the dataProvider. That should definitely cause the tree to refresh. In 1.5, we could do myTree.dataProvider = myTree.dataProvider;
Tracy
From: [email protected] [mailto:[email protected]] On Behalf Of Jason Y. Kwong
Sent: Tuesday, June 06, 2006 3:46 PM
To: [email protected]
Subject: Re: [flexcoders] Re: F2b3: e4x XML object as Tree dataprovider, how to refresh tree display?
Actually, let me clarify that a bit. I can't get the Tree to show new nodes added to the root node. If I add nodes to child nodes, they show up when calling invalidateList(). The root node is the problem. I did a trace of the Tree's dataprovider after adding to the root node and the new children are in the XML. Must be a problem with the Tree's refresh logic.
On 6/6/06, Jason Y. Kwong <[EMAIL PROTECTED]> wrote:
I've noticed one other problem: If a Tree's showRoot property is set to false, not even calling invalidateList() will refresh the display. In fact, I can't find any way to get the Tree to refresh in such a case. Any ideas?
On 5/25/06, Michael Montagna < [EMAIL PROTECTED]> wrote:
Post beta3, changes to XML will automatically get updated in the Tree
control. And you won't be required to go through XMLListCollection
but you can simply make changes to the XML model itself, e.g. delete,
+, appendChild, etc.
You're seeing a bug in the b3 Tree where the collection events aren't
being handled properly.
HTH,
-Michael
Flex Framework
--- In [email protected] , "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Well, I figured it out already:
>
> myTree.invalidateList();
>
> cleanly updates my display.
>
>
>
> If there is a better way, let me know.
>
> Tracy
>
>
>
> ________________________________
>
> From: [email protected] [mailto: [email protected]] On
> Behalf Of Tracy Spratt
> Sent: Wednesday, May 24, 2006 8:58 PM
> To: [email protected]
> Subject: [flexcoders] F2b3: e4x XML object as Tree dataprovider, how to
> refresh tree display?
>
>
>
> I need to modify the xml node names and text nodes so I can't use the
> XMLListCollection API.
>
> In 1.5, we could dispatch a "modelChanged" event to update a control.
>
> What is the 2.0 style way to cause a Tree control to refresh?
>
> Tracy
>
>
>
> --
> 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
> < http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
>
> Computer software development
> < http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
> b+site+design+development&w2=Computer+software+development&w3=Software+d
> esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
>
> Software design and development
> < http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> Web+site+design+development&w2=Computer+software+development&w3=Software
> +design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
>
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>
>
> Software development best practice
> < http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&
> w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
>
>
>
>
>
> ________________________________
>
> YAHOO! GROUPS LINKS
>
>
>
> * Visit your group "flexcoders
> < http://groups.yahoo.com/group/flexcoders> " on the web.
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
>
>
>
> ________________________________
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| 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.

