There are several places in the docs which should be updated then. I'll
note them here, then put comments in the livedocs.
In "Using hierarchical data providers":
"While you can use an XML object directly as a dataProvider to a
hierarchical data control, you should first convert it to a collection
if the object changes dynamically. Doing so will ensure that the
component represents the changes to the collection."
In "Creating a Tree control":
"As with all data provider controls, if the data provider contents can
change as a result of actions outside the Tree, wrap the data source in
a collection, such as an ArrayCollection or XMLListCollection object,
and specify the collection in the Tree control's dataProvider property."
And there is another place I can't find right now, that says something
like:
"XML, by default will not cause a control to update"
Tracy
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Montagna
Sent: Thursday, May 25, 2006 1:21 AM
To: [email protected]
Subject: [flexcoders] Re: F2b3: e4x XML object as Tree dataprovider, how
to refresh tree display?
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]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <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
Yahoo! Groups Links
--
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.

