Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   TreeNode remove method dosen't work (http://www.velocityreviews.com/forums/t771712-treenode-remove-method-dosent-work.html)

Hitesh 11-11-2003 11:57 AM

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 07:46 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.