<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Expanding nodes in a Flex Tree control using the openItems property</title>
	<atom:link href="http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Fri, 19 Mar 2010 20:35:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason Swick</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2297</link>
		<dc:creator>Jason Swick</dc:creator>
		<pubDate>Fri, 03 Apr 2009 19:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2297</guid>
		<description>I have a tree that the dataprovider changes, and using methods such as &lt;code&gt;tree.openItems = tree.dataProvider;&lt;/code&gt; would open only the top level, and &lt;code&gt;tree.dataProvider().descendants();&lt;/code&gt; would open everything EXCEPT the top level. what I finally came up with is &lt;code&gt;tree.openItems = tree.dataProvider[0].parent().descendants();&lt;/code&gt; and that opens everything.</description>
		<content:encoded><![CDATA[<p>I have a tree that the dataprovider changes, and using methods such as <code>tree.openItems = tree.dataProvider;</code> would open only the top level, and <code>tree.dataProvider().descendants();</code> would open everything EXCEPT the top level. what I finally came up with is <code>tree.openItems = tree.dataProvider[0].parent().descendants();</code> and that opens everything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdh</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2299</link>
		<dc:creator>mdh</dc:creator>
		<pubDate>Mon, 15 Dec 2008 22:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2299</guid>
		<description>Thanks for this post! It helped me solve an issue I didn&#039;t think I was ever going to figure out.</description>
		<content:encoded><![CDATA[<p>Thanks for this post! It helped me solve an issue I didn&#8217;t think I was ever going to figure out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ILIUS</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2300</link>
		<dc:creator>ILIUS</dc:creator>
		<pubDate>Sun, 07 Dec 2008 16:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2300</guid>
		<description>How can i close all nodes except one i&#039;ve just opened? Kind of accordion.</description>
		<content:encoded><![CDATA[<p>How can i close all nodes except one i&#8217;ve just opened? Kind of accordion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ILIUS</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2298</link>
		<dc:creator>ILIUS</dc:creator>
		<pubDate>Tue, 18 Nov 2008 05:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2298</guid>
		<description>&lt;pre lang=&quot;actionscript3&quot;&gt;
private function openAllNodes():void {
    tree.openItems=dp.descendants(&quot;*&quot;)
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> openAllNodes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
    tree.openItems=dp.<span style="color: #004993;">descendants</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;*&quot;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Pohlmann</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2296</link>
		<dc:creator>Peter Pohlmann</dc:creator>
		<pubDate>Tue, 15 Apr 2008 14:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2296</guid>
		<description>hello all,



first of all a big respect for this blog.


Got also problems with the vertical scrolling....


Here is nice tutorial for a tree with amfPHP (http://www.sephiroth.it/tutorials/fl...fphp/index.php)

i&#039;ve used it for my app, but running into some trouble now, with the scrollbars, what i really didn&#039;t expect!!

here you can see the app and the source code:
http://www.rootop.de/testing/TestTree.html

it&#039;s all german, so when you click on Enomis -&gt; Einzelstoffe-&gt;Obst , then there appears a scrollbar for a short time and then disappears again, even if there are more branches... it really makes me mad.. i tried serveral function like..

//scroll always to bottom, otherwise, only the items are shown, that are in the visible area
tree.verticalScrollPosition=tree.maxVerticalScroll Position;

tree.invalidateList();

tree.validateNow();

but nothing really works. the general problem is, that i don&#039;t know when flex display the scrollbar and when not. because in some cases it works.
so, if there is a solution or a workaround, i would be very happy. thanks in advance. kind regards, peter</description>
		<content:encoded><![CDATA[<p>hello all,</p>
<p>first of all a big respect for this blog.</p>
<p>Got also problems with the vertical scrolling&#8230;.</p>
<p>Here is nice tutorial for a tree with amfPHP (<a href="http://www.sephiroth.it/tutorials/fl...fphp/index.php" rel="nofollow">http://www.sephiroth.it/tutorials/fl&#8230;fphp/index.php</a>)</p>
<p>i&#8217;ve used it for my app, but running into some trouble now, with the scrollbars, what i really didn&#8217;t expect!!</p>
<p>here you can see the app and the source code:<br />
<a href="http://www.rootop.de/testing/TestTree.html" rel="nofollow">http://www.rootop.de/testing/TestTree.html</a></p>
<p>it&#8217;s all german, so when you click on Enomis -&gt; Einzelstoffe-&gt;Obst , then there appears a scrollbar for a short time and then disappears again, even if there are more branches&#8230; it really makes me mad.. i tried serveral function like..</p>
<p>//scroll always to bottom, otherwise, only the items are shown, that are in the visible area<br />
tree.verticalScrollPosition=tree.maxVerticalScroll Position;</p>
<p>tree.invalidateList();</p>
<p>tree.validateNow();</p>
<p>but nothing really works. the general problem is, that i don&#8217;t know when flex display the scrollbar and when not. because in some cases it works.<br />
so, if there is a solution or a workaround, i would be very happy. thanks in advance. kind regards, peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stone</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2295</link>
		<dc:creator>Stone</dc:creator>
		<pubDate>Wed, 27 Feb 2008 06:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2295</guid>
		<description>It seems in Flex SDK 2.0.1, the vertical scrollbar will not be updated when the openItems is changed. Does anyone know how to fix this?

You can reproduce the problem by just compile the second sample in Flex SDK 2.0.1 and click &quot;Open some nodes&quot;, and the vertical scrollbar will not show!</description>
		<content:encoded><![CDATA[<p>It seems in Flex SDK 2.0.1, the vertical scrollbar will not be updated when the openItems is changed. Does anyone know how to fix this?</p>
<p>You can reproduce the problem by just compile the second sample in Flex SDK 2.0.1 and click &#8220;Open some nodes&#8221;, and the vertical scrollbar will not show!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Hollabaugh</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2294</link>
		<dc:creator>Craig Hollabaugh</dc:creator>
		<pubDate>Fri, 22 Feb 2008 06:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2294</guid>
		<description>Peter,
In this statement,
&lt;pre lang=&quot;actionscript3&quot;&gt;
var xList:XMLList = dp..node.(hasOwnProperty(&quot;@isOpen&quot;) &amp;&amp; @isOpen == &quot;true&quot;)
&lt;/pre&gt;

you use the &#039;..&#039; e4x operator to look for node elements with @isOpen attribute and @isOpen is true.

If your XML elements were not  but a collection with different localnames, how could you find all elements with @isOpen attributes
&lt;pre lang=&quot;actionscript3&quot;&gt;
var xList:XMLList = dp..(hasOwnProperty(&quot;@isOpen&quot;) &amp;&amp; @isOpen == &quot;true&quot;)
&lt;/pre&gt;

doesn&#039;t compile. I&#039;ve tried all sorts of things but can&#039;t figure out the e4x equivalent to xpath&#039;s &#039;//*[@attr]&#039;

Thanks,
Craig</description>
		<content:encoded><![CDATA[<p>Peter,<br />
In this statement,</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> xList<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">XMLList</span> = dp..node.<span style="color: #000000;">&#40;</span><span style="color: #004993;">hasOwnProperty</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;@isOpen&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; @isOpen == <span style="color: #990000;">&quot;true&quot;</span><span style="color: #000000;">&#41;</span></pre></div></div>

<p>you use the &#8216;..&#8217; e4x operator to look for node elements with @isOpen attribute and @isOpen is true.</p>
<p>If your XML elements were not  but a collection with different localnames, how could you find all elements with @isOpen attributes</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> xList<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">XMLList</span> = dp..<span style="color: #000000;">&#40;</span><span style="color: #004993;">hasOwnProperty</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;@isOpen&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; @isOpen == <span style="color: #990000;">&quot;true&quot;</span><span style="color: #000000;">&#41;</span></pre></div></div>

<p>doesn&#8217;t compile. I&#8217;ve tried all sorts of things but can&#8217;t figure out the e4x equivalent to xpath&#8217;s &#8216;//*[@attr]&#8216;</p>
<p>Thanks,<br />
Craig</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2293</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Mon, 21 Jan 2008 10:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2293</guid>
		<description>Hi Peter.

Are you sure that this last code of your response is working? When i copy into my Flex Builder 3 (Milestone 3 Beta 2) and execute it via Internet Explorer, if i click &quot;Open All&quot; button, Washington and Florida dont show and the scrollbars also dont show, so you have reproduced my problem perfectly with this example!!

I can´t find a solution for now. I also set the verticalScrollPolicy to &quot;on&quot; but dont work. If i can find a solution, ill tell you.

Thanks and sorry for my poor english

Luis Alcalá</description>
		<content:encoded><![CDATA[<p>Hi Peter.</p>
<p>Are you sure that this last code of your response is working? When i copy into my Flex Builder 3 (Milestone 3 Beta 2) and execute it via Internet Explorer, if i click &#8220;Open All&#8221; button, Washington and Florida dont show and the scrollbars also dont show, so you have reproduced my problem perfectly with this example!!</p>
<p>I can´t find a solution for now. I also set the verticalScrollPolicy to &#8220;on&#8221; but dont work. If i can find a solution, ill tell you.</p>
<p>Thanks and sorry for my poor english</p>
<p>Luis Alcalá</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2292</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 18 Jan 2008 14:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2292</guid>
		<description>Luis,

I can&#039;t seem to reproduce the issue. Using the code from the code from the example above (second example, the first example doesn&#039;t have enough data to cause scroll bars to appear), the scrollbars are displaying when I expand the nodes. I even created a bigger data set (code below) and the scrollbars appear correctly also.

Also, you could try explicitly setting the verticalScrollPolicy property to &quot;on&quot; for the Tree and see if that fixes the issue.

I&#039;m using Flex 3 SDK Version 191831. Are you using Flex 2.0.1 or the Flex 3 beta?

If you think it is a bug, can you file a bug report at http://bugs.adobe.com/flex/ and include your source code (or a simple test case showing the behavior) and myself or somebody else can take a look at it.

Thanks,
Peter

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.utils.ObjectUtil;

            private function openAll():void {
                var items:XMLList = xmlDP..node.(children().length() &gt; 0);
                tree.openItems = items;
            }

            private function closeAll():void {
                tree.openItems = [];
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:XML id=&quot;xmlDP&quot;&gt;
        &lt;root&gt;
            &lt;node label=&quot;American League&quot;&gt;
                &lt;node label=&quot;West&quot;&gt;
                    &lt;node label=&quot;Los Angeles&quot; /&gt;
                    &lt;node label=&quot;Seattle&quot; /&gt;
                    &lt;node label=&quot;Oakland&quot; /&gt;
                    &lt;node label=&quot;Texas&quot; /&gt;
                &lt;/node&gt;
                &lt;node label=&quot;Central&quot;&gt;
                    &lt;node label=&quot;Cleveland&quot; /&gt;
                    &lt;node label=&quot;Detroit&quot; /&gt;
                    &lt;node label=&quot;Minnesota&quot; /&gt;
                    &lt;node label=&quot;Chicago&quot; /&gt;
                    &lt;node label=&quot;Kansas City&quot; /&gt;
                &lt;/node&gt;
                &lt;node label=&quot;East&quot;&gt;
                    &lt;node label=&quot;Boston&quot; /&gt;
                    &lt;node label=&quot;New York&quot; /&gt;
                    &lt;node label=&quot;Toronto&quot; /&gt;
                    &lt;node label=&quot;Baltimore&quot; /&gt;
                    &lt;node label=&quot;Tampa Bay&quot; /&gt;
                &lt;/node&gt;
            &lt;/node&gt;
            &lt;node label=&quot;National League&quot;&gt;
                &lt;node label=&quot;West&quot;&gt;
                    &lt;node label=&quot;Arizona&quot; /&gt;
                    &lt;node label=&quot;Colorado&quot; /&gt;
                    &lt;node label=&quot;San Diego&quot; /&gt;
                    &lt;node label=&quot;Los Angeles&quot; /&gt;
                    &lt;node label=&quot;San Francisco&quot; /&gt;
                &lt;/node&gt;
                &lt;node label=&quot;Central&quot;&gt;
                    &lt;node label=&quot;Chicago&quot; /&gt;
                    &lt;node label=&quot;Milwaukee&quot; /&gt;
                    &lt;node label=&quot;St. Louis&quot; /&gt;
                    &lt;node label=&quot;Houston&quot; /&gt;
                    &lt;node label=&quot;Cincinnati&quot; /&gt;
                    &lt;node label=&quot;Pittsburgh&quot; /&gt;
                &lt;/node&gt;
                &lt;node label=&quot;East&quot;&gt;
                    &lt;node label=&quot;Philadelphia&quot; /&gt;
                    &lt;node label=&quot;New York&quot; /&gt;
                    &lt;node label=&quot;Atlanta&quot; /&gt;
                    &lt;node label=&quot;Washington&quot; /&gt;
                    &lt;node label=&quot;Florida&quot; /&gt;
                &lt;/node&gt;
            &lt;/node&gt;
        &lt;/root&gt;
    &lt;/mx:XML&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:Button label=&quot;Open all&quot; click=&quot;openAll();&quot; /&gt;
        &lt;mx:Button label=&quot;Close All&quot; click=&quot;closeAll();&quot; /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Tree id=&quot;tree&quot;
            dataProvider=&quot;{xmlDP}&quot;
            labelField=&quot;@label&quot;
            showRoot=&quot;false&quot;
            width=&quot;300&quot;
            height=&quot;100%&quot;
            verticalScrollPolicy=&quot;auto&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Luis,</p>
<p>I can&#8217;t seem to reproduce the issue. Using the code from the code from the example above (second example, the first example doesn&#8217;t have enough data to cause scroll bars to appear), the scrollbars are displaying when I expand the nodes. I even created a bigger data set (code below) and the scrollbars appear correctly also.</p>
<p>Also, you could try explicitly setting the verticalScrollPolicy property to &#8220;on&#8221; for the Tree and see if that fixes the issue.</p>
<p>I&#8217;m using Flex 3 SDK Version 191831. Are you using Flex 2.0.1 or the Flex 3 beta?</p>
<p>If you think it is a bug, can you file a bug report at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> and include your source code (or a simple test case showing the behavior) and myself or somebody else can take a look at it.</p>
<p>Thanks,<br />
Peter</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.utils.ObjectUtil;</span>
&nbsp;
<span style="color: #339933;">            private function openAll():void {</span>
<span style="color: #339933;">                var items:XMLList = xmlDP..node.(children().length() &gt; 0);</span>
<span style="color: #339933;">                tree.openItems = items;</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            private function closeAll():void {</span>
<span style="color: #339933;">                tree.openItems = [];</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:XML</span> id=<span style="color: #ff0000;">&quot;xmlDP&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;root<span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;American League&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;West&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Los Angeles&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Seattle&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Oakland&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Texas&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;/node<span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Central&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Cleveland&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Detroit&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Minnesota&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Chicago&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Kansas City&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;/node<span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;East&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Boston&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;New York&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Toronto&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Baltimore&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Tampa Bay&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;/node<span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;">&lt;/node<span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;National League&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;West&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Arizona&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Colorado&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;San Diego&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Los Angeles&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;San Francisco&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;/node<span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Central&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Chicago&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Milwaukee&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;St. Louis&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Houston&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Cincinnati&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Pittsburgh&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;/node<span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;East&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Philadelphia&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;New York&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Atlanta&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Washington&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;node label=<span style="color: #ff0000;">&quot;Florida&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;/node<span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;">&lt;/node<span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;/root<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:XML</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ApplicationControlBar</span> dock=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Open all&quot;</span> click=<span style="color: #ff0000;">&quot;openAll();&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Close All&quot;</span> click=<span style="color: #ff0000;">&quot;closeAll();&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ApplicationControlBar</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Tree</span> id=<span style="color: #ff0000;">&quot;tree&quot;</span></span>
<span style="color: #000000;">            dataProvider=<span style="color: #ff0000;">&quot;{xmlDP}&quot;</span></span>
<span style="color: #000000;">            labelField=<span style="color: #ff0000;">&quot;@label&quot;</span></span>
<span style="color: #000000;">            showRoot=<span style="color: #ff0000;">&quot;false&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;300&quot;</span></span>
<span style="color: #000000;">            height=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">            verticalScrollPolicy=<span style="color: #ff0000;">&quot;auto&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/comment-page-1/#comment-2291</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Fri, 18 Jan 2008 09:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/#comment-2291</guid>
		<description>Hi Peter, Firt of all. Congratulations for the blog. It´s one of the best Fex Resources i found.

Lets talk about this post and see if you or other reader can help me.

Imagine that my tree is embedded into a panel. (You can see my flex page about sanish accounting software in this comment link. Section &quot;El Plan de Cuentas)

If i use your system to open all nodes, the content of the tree will go own from the content of the panl, but the panel is not showing me the scroll bar. Otherwise, expanding tree nodes 1 by 1 the panel show the scrolling bar when the size is not enough.

Thanks and great Job!</description>
		<content:encoded><![CDATA[<p>Hi Peter, Firt of all. Congratulations for the blog. It´s one of the best Fex Resources i found.</p>
<p>Lets talk about this post and see if you or other reader can help me.</p>
<p>Imagine that my tree is embedded into a panel. (You can see my flex page about sanish accounting software in this comment link. Section &#8220;El Plan de Cuentas)</p>
<p>If i use your system to open all nodes, the content of the tree will go own from the content of the panl, but the panel is not showing me the scroll bar. Otherwise, expanding tree nodes 1 by 1 the panel show the scrolling bar when the size is not enough.</p>
<p>Thanks and great Job!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
