Open branches clientside

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

    Posted 25 Oct 2010 Link to this post

    Hello,
    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
    Admin
    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: http://www.telerik.com/help/aspnet-ajax/tree_clientradtreenode.html
    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: http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.radtreenode_members.html
    You can use ExpandParentNodes.

    Hope this is helpful for you!


    Regards,
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top