PDA

View Full Version : dynamic tree menu component...


sfomra
12-20-2004, 06:34 AM
hello i have been working with the tree component for the past 10 hours but could not get it to work the way i want it....



heres how it goes....my project which has a tree view....has a total of around 6000 nodes,subnodes etc... and am loading it all using an asp accessing database and createing an xml...keeping in mind the huge number of nodes and subnodes....i decided to load the nodes on the click of the user.....so on the first load of the swf i just load the parents.....then on selection of a parent....i want to load the child nodes to each parent......the only problem here is that i dont noe how to load data into the tree on the fly and create new nodes using xml.....



i have uploaded the source file here....hope u have a look at it n help me out....





http://s12.yousendit.com/d.aspx?id=3CKVV4AXP0ZZV0MCSGQ1O1DX8W





Thnk U

sfomra
12-22-2004, 09:11 AM
this is extremely urgent please post your views and suggestions......

thanx

paranoidan
12-22-2004, 02:10 PM
try
addTreeNode()
addTreeNodeAt()
methods.
When user expands node your event handler connects asp and gets new nodes paremeter.Take them in array.Then use methods to add new nodes.

sfomra
12-23-2004, 04:56 AM
I Have Tried Using The Addnode And Addnodeto Methods But Dont Get The Desirable Output.....kindly Suggest Wat Else I Can Do.....please Postthe Source If U Can Make It Work In Some Way Or The Other.......