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

Open branches clientside

1 Answer 44 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
archimede
Top achievements
Rank 1
archimede asked on 25 Oct 2010, 02:44 PM
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.

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 28 Oct 2010, 09:56 AM
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
Tags
TreeView
Asked by
archimede
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or