Dynamic Tree control in Flex 3
Posted
by nimmyliji
on Stack Overflow
See other posts from Stack Overflow
or by nimmyliji
Published on 2010-05-20T07:46:42Z
Indexed on
2010/05/20
7:50 UTC
Read the original article
Hit count: 615
I am looking for sample code to create a dynamic Tree control in Flex using a Collection of objects obtained from the backend(Perl cgi).
So, initially the Tree will display the root nodes. Clicking root node, will invoke the data for populating the child nodes (basically adding child nodes on demand). Clicking child nodes will pull another collection add child nodes of child node.
So, lets assume Initially the Tree will display -
Root1
Root2
Root3
Clicking Root1 will display something like this -
Root1
Child 1
Child 2
Root2
Root3
And Clicking Child1 will display -
Root1
Child 1
Child1 of Child 1
Child2 of Child 1
Child 2
Root2
Root3
Is it possible?
Thanks in advance...
© Stack Overflow or respective owner