TreeNode remove method dosen't work

H

Hitesh

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top