TreeNode remove method dosen't work

TreeNode remove method dosen't work

Post by Hites » Wed, 12 Nov 2003 20:57:07


Hi all,
following is the client side javascript code I've written
to delete some nodes on treeview.
-----------------
var oTreeNode = TreeViewControl.getTreeNode(NodeIndex)
var oCNodes = oTreeNode.getChildren();

alert(oCNodes[0].getNodeIndex());
//Above line shows correct index.

oCNodes[0].remove();
//Above line doesn't work if oTreeNode collapsed.

-------------------
The remove method in above code doesn't work if the
oTreeNode is not expanded. I tried to expand it using
oTreeNode.setAttribute("EXPANDED",true); method. but It is
not working either.

Any ideas how can I expand the node and then remove it's
child nodes?

Regards,
Hitesh
 
 
 

1. Curl dosent in my c++ app dosent seem to be working in apache cgi

2. Login script dosent work for XP but works on 2000

Hi everybody,
I have a windows 2003 network with about 10 workstation some Windows 2000
pro and some
Windows XP, I create a VB Login script and add it to Login Script at Profile
for each user,
Problem is Script run perfect for Windows 2000 machine but if the same user
login to a Windows XP
computer it doesn't run automatically at login time, but still if I run the
script manually it works fine even
for XP but I like it automatically run for both systems,
Script add a few MAP drive and printers.
Any idea?
Thanks you in advance - Sam

3. Object dosent support this property or method

4. error: object dosent support this property or method

5. Casting WebForm TreeNode ( TreeView ) to WinForms TreeNode

6. Adding the same TreeNode to multiple TreeNodes

7. 12355.4 I got a Syntaxis fault on the line "treeNode = treeNode.AOTnextSibling().AOTnextSibling();"

8. what is equivalent of vb.net treenode.nextnode property in asp.net webcontrols.treenode

9. TreeNode.Select method

10. treenode.clone method

11. excel: external data "data range properties" button dosent work

12. hitman contract why dosent it work

13. dosent work

14. Usb memory stcik dosent work on Windows vista home premium 64bit

15. The serial configurae port Icon dosent work