Velocity Reviews

Velocity Reviews (
-   ASP .Net Web Controls (
-   -   TreeNode remove method dosen't work (

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();

//Above line shows correct index.

//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?


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.