display the specific node i.e node (parent 1) children should be opened... rest all should be closed...i.e node (child 4) should be closed.

0 views
Skip to first unread message

prashant waykar

unread,
Oct 28, 2009, 5:16:23 AM10/28/09
to Bombay Flex Coders
Hey friends need help....
I have to display the specific node i.e node (parent 1) children
should be opened...
rest all should be closed...i.e node (child 4) should be closed.
like this should be displayed.

>Parent 1
-->Child 1
-->Child 2
---->GrandChild 1

-->Child 4


This is my xml ....

<mx:XMLList id="dp">
<root>
<node label="Parent 1" isOpen="true">
<node label="Child 1" />
<node label="Child 2">
<node label="Grandchild 1" />
</node>

<node label="Child 4" isOpen="true">
<node label="Grandchild 3">
<node label="Great-grandchild 1" />
<node label="Great-grandchild 2" />
<node label="Great-grandchild 3" />
<node label="Great-grandchild 4">
<node label="Great-great-grandchild 1" />
</node>
<node label="Grandchild 1" />
</node>
<node label="Grandchild 4" />
</node>
<node label="Child 5" />
</node>
</root>
</mx:XMLList>
Reply all
Reply to author
Forward
0 new messages