Open branches clientside

2 posts, 0 answers
  1. archimede
    archimede avatar
    106 posts
    Member since:
    Jul 2006

    Posted 25 Oct 2010 Link to this post

    I have a RadTreeView that has ExpandMode "TreeNodeExpandMode.ServerSideCallBack". I want to open branches and select a node client-side via Javascript. Is there any example on how to do this?

    My target is to refresh the tree after an user right click action on a node. After the right click, I'll do a postback and refresh the tree and reselect the node also opening branches to reach selected node.
  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 28 Oct 2010 Link to this post

    Hello archimede,

    Here is a link to the reference regarding RadTreeNode's client-side API:
    You can use node.set_expanded(true) in order to expand a node and node.set_selected(true) to select a node.

    Here is a reference to the server-side instances of RadTreeNode:
    You can use ExpandParentNodes.

    Hope this is helpful for you!

    Nikolay Tsenkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top