I'm sure this is something reasonable simple for those of you more familiar with DynAPI, could you take a moment to glance at this? Simple description: New nodes are not appearing when they are added.
Using the RiFastTreeExample (from www.richardinfo.com) I am trying to make a tree that I can add and remove nodes from via button clicks (instead of the node0=myTree.add('Sub Node1') way that it happens in the example). I have a function function addObject(itemID) that takes the node that you're trying to add to and adds a new node. It's really straight foward could be just these 2 lines even: parentItem = DynObject.all[itemID]; newNode = parentItem.add('Node1') I then do a alert("len=" + parentItem.items.length); parentItem.openNode(); And I can see that the node has been added to the items array. The openNode() shows a larger area ,which makes sense since the node has been added. I can even iterate through the items array and get the DynId's of all the objects. So it appears that they're really there. But they DON'T show up! Urghhh. I tried parentItem.repaint(1); But to no avail. Checked to see if their visible property was 'true', and it was. What do I need to do to make these new nodes show up?? This is driving me nuts!! They're there, but I can't make them show up. Urghh. Thank you *very* much for any help/suggestions. Cheers, James _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help