![]() |
TreeNode remove method dosen't work
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 |
| All times are GMT. The time now is 03:36 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.