Set Level/Depth by javascript

2 posts, 0 answers
  1. Telerikuser
    Telerikuser avatar
    35 posts
    Member since:
    May 2009

    Posted 16 Jul 2009 Link to this post

    Is it possible to set level/depth for a node through javascript? If so please provide me with a sample.

    Thanks
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Jul 2009 Link to this post

    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.
Back to Top