<?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: Filtering a Flex Tree using an ArrayCollection</title>
	<atom:link href="http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/</link>
	<description>The Dead Tree Blog</description>
	<lastBuildDate>Wed, 18 Jan 2012 08:30:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ashish</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-57540</link>
		<dc:creator>ashish</dc:creator>
		<pubDate>Wed, 09 Nov 2011 07:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-57540</guid>
		<description>when i try to search &quot;peter&quot; tree gets properly filtered and shows me only &#039;peter&#039; under &#039;Grandma Susan&#039; but when i click on trangel to collapse it same &quot; error 1010&quot; is found. (this error is specially occur when data contain only one entry)
any one can try this on the same site. after showing me error again try to open the tree, it ll not be worked until u refresh the browser.

plz if any one has soln for the above problem post ur comment
thanks in advance.</description>
		<content:encoded><![CDATA[<p>when i try to search &#8220;peter&#8221; tree gets properly filtered and shows me only &#8216;peter&#8217; under &#8216;Grandma Susan&#8217; but when i click on trangel to collapse it same &#8221; error 1010&#8243; is found. (this error is specially occur when data contain only one entry)<br />
any one can try this on the same site. after showing me error again try to open the tree, it ll not be worked until u refresh the browser.</p>
<p>plz if any one has soln for the above problem post ur comment<br />
thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jody Flack</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-57256</link>
		<dc:creator>Jody Flack</dc:creator>
		<pubDate>Mon, 07 Nov 2011 22:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-57256</guid>
		<description>hey, great blog! love it :)</description>
		<content:encoded><![CDATA[<p>hey, great blog! love it <img src='http://www.kalengibbons.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benydo</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-49466</link>
		<dc:creator>Benydo</dc:creator>
		<pubDate>Wed, 28 Sep 2011 14:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-49466</guid>
		<description>I don&#039;t know if you found a solution to the problem mentioned at 2, but maybe dispatching a CollectionEvent each time after the refresh call with CollectionEventKind.RESET will fix this problem. To be honest i also dispatch one after the invalidateList, but this is maybe unnecessary.

Arthur this is also solves your problem.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if you found a solution to the problem mentioned at 2, but maybe dispatching a CollectionEvent each time after the refresh call with CollectionEventKind.RESET will fix this problem. To be honest i also dispatch one after the invalidateList, but this is maybe unnecessary.</p>
<p>Arthur this is also solves your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-35306</link>
		<dc:creator>Arthur</dc:creator>
		<pubDate>Thu, 21 Jul 2011 22:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-35306</guid>
		<description>I am developing a similar example and had a problem with scrollbar&#039;s parent container. When I expand the tree, it creates the verticalscroll, but if I filter the tree to have a few nodes to disappear scrollbar, the scrollbar remains the same size, and if I scrolling, happens some issue in the layout tree ..

I tried to call invalidateDisplayList in parant container but don&#039;t it fixed the problem.

any suggestions?

Thanks</description>
		<content:encoded><![CDATA[<p>I am developing a similar example and had a problem with scrollbar&#8217;s parent container. When I expand the tree, it creates the verticalscroll, but if I filter the tree to have a few nodes to disappear scrollbar, the scrollbar remains the same size, and if I scrolling, happens some issue in the layout tree ..</p>
<p>I tried to call invalidateDisplayList in parant container but don&#8217;t it fixed the problem.</p>
<p>any suggestions?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalen Gibbons</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-17341</link>
		<dc:creator>Kalen Gibbons</dc:creator>
		<pubDate>Mon, 21 Feb 2011 20:46:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-17341</guid>
		<description>Hi Joe,  it all depends on your use case.  Thanks for posting your code, it may come in very handy for someone looking for the same result.</description>
		<content:encoded><![CDATA[<p>Hi Joe,  it all depends on your use case.  Thanks for posting your code, it may come in very handy for someone looking for the same result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-17273</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sun, 20 Feb 2011 19:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-17273</guid>
		<description>I think this example works incorrectly because in 100% of cases I envision, the children of a filtered item should be visible. For instance, if I&#039;m trying to filter store locations by state and I type &quot;ca&quot;, I want to see a list of stores in California. In your example, if I type &quot;t&quot;, Tiffany node is visible, but its four child nodes disappear. I fixed it by changing filter data to unfilter child node if a node returns true:

if (searchString.length == 0
&#124;&#124; item.name.toLowerCase().indexOf(searchString.toLowerCase()) &gt;= 0) {
   if (item.children) {
      item.children.filterFunction = null;
      item.children.refresh();
   }
   return true;
}</description>
		<content:encoded><![CDATA[<p>I think this example works incorrectly because in 100% of cases I envision, the children of a filtered item should be visible. For instance, if I&#8217;m trying to filter store locations by state and I type &#8220;ca&#8221;, I want to see a list of stores in California. In your example, if I type &#8220;t&#8221;, Tiffany node is visible, but its four child nodes disappear. I fixed it by changing filter data to unfilter child node if a node returns true:</p>
<p>if (searchString.length == 0<br />
|| item.name.toLowerCase().indexOf(searchString.toLowerCase()) &gt;= 0) {<br />
   if (item.children) {<br />
      item.children.filterFunction = null;<br />
      item.children.refresh();<br />
   }<br />
   return true;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalen Gibbons</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-16148</link>
		<dc:creator>Kalen Gibbons</dc:creator>
		<pubDate>Fri, 04 Feb 2011 21:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-16148</guid>
		<description>Hi Umer,
  It sounds like you&#039;re &quot;lazy loading&quot; the branches of your tree.  If you wanted to do a search you would need to query your server for that person and, if found, have the server return the path to that person.  For example 2-4-3-5 could mean that the user is 5th node on the 3rd branch on the 4th branch of the 2nd branch of the root node.  Then you would traverse your tree from top to bottom either opening or loading branches until you get to the requested person node.</description>
		<content:encoded><![CDATA[<p>Hi Umer,<br />
  It sounds like you&#8217;re &#8220;lazy loading&#8221; the branches of your tree.  If you wanted to do a search you would need to query your server for that person and, if found, have the server return the path to that person.  For example 2-4-3-5 could mean that the user is 5th node on the 3rd branch on the 4th branch of the 2nd branch of the root node.  Then you would traverse your tree from top to bottom either opening or loading branches until you get to the requested person node.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umer</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-16139</link>
		<dc:creator>Umer</dc:creator>
		<pubDate>Fri, 04 Feb 2011 18:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-16139</guid>
		<description>Very nice, ONE Question

how would I find some particular person in tree, in my case on root elements come from server, one i click it ll fetch children, then if you click on children it ll fetch its respective children , hence tree can be opened, ITS WORKING but
I want to locate an object lets say person xyz, which is on 6th level, how would I open tree step by step to reach that level , please help me on that, thanks
Umer</description>
		<content:encoded><![CDATA[<p>Very nice, ONE Question</p>
<p>how would I find some particular person in tree, in my case on root elements come from server, one i click it ll fetch children, then if you click on children it ll fetch its respective children , hence tree can be opened, ITS WORKING but<br />
I want to locate an object lets say person xyz, which is on 6th level, how would I open tree step by step to reach that level , please help me on that, thanks<br />
Umer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalen Gibbons</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-13471</link>
		<dc:creator>Kalen Gibbons</dc:creator>
		<pubDate>Thu, 30 Dec 2010 21:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-13471</guid>
		<description>Hi Basil,
  I&#039;m sorry, but no, I never got around to creating an example using an xmlCollection.  The code shown in this post was more of a proof-of-concept than anything and several commenter have pointed out flaws with this approach.  I would recommend looking into using the ITreeDataDescriptor class for doing this type of filtering instead.  

Simon previously posted a comment with this link (http://www.richardleggett.co.uk/blog/index.php/2009/05/11/filtering-hierachical-data-in-flex-itree) that explorers the topic more thoroughly than I have done here.  I recommend you check it out.</description>
		<content:encoded><![CDATA[<p>Hi Basil,<br />
  I&#8217;m sorry, but no, I never got around to creating an example using an xmlCollection.  The code shown in this post was more of a proof-of-concept than anything and several commenter have pointed out flaws with this approach.  I would recommend looking into using the ITreeDataDescriptor class for doing this type of filtering instead.  </p>
<p>Simon previously posted a comment with this link (<a href="http://www.richardleggett.co.uk/blog/index.php/2009/05/11/filtering-hierachical-data-in-flex-itree" rel="nofollow">http://www.richardleggett.co.uk/blog/index.php/2009/05/11/filtering-hierachical-data-in-flex-itree</a>) that explorers the topic more thoroughly than I have done here.  I recommend you check it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basil</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/comment-page-1/#comment-13439</link>
		<dc:creator>Basil</dc:creator>
		<pubDate>Thu, 30 Dec 2010 07:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.kalengibbons.com/blog2/?p=89#comment-13439</guid>
		<description>Good morning and happy holidays,
Have u ever had the chance to convert this example for a xmlCollection?
I&#039;ve been trying to make it work with data loaded from an XML but with limited success.
Thanks</description>
		<content:encoded><![CDATA[<p>Good morning and happy holidays,<br />
Have u ever had the chance to convert this example for a xmlCollection?<br />
I&#8217;ve been trying to make it work with data loaded from an XML but with limited success.<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

