This is a migrated thread and some comments may be shown as answers.

Set Level/Depth by javascript

1 Answer 79 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Telerikuser
Top achievements
Rank 1
Telerikuser asked on 17 Jul 2009, 12:45 AM
Is it possible to set level/depth for a node through javascript? If so please provide me with a sample.

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Jul 2009, 01:04 PM
Hello,

I am not quite sure about your requirement. As far as I know we cannot set the level of the RadTreeNode when adding the node.

If you want to add a node to a particular level then you can loop through all the nodes and check for the level using get_level() method and then add the node. Checkout the following documentation link which describes the most important functions of client-side RadTreeNode object.
RadTreeNode
RadTreeNodeCollection

Thanks,
Princy.
Tags
TreeView
Asked by
Telerikuser
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or