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

Prevent deselection of Nodes

1 Answer 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 06 Jun 2013, 06:44 AM
Hi there,

I am using the RadTreeView for a vertical navigation (similar to the one on http://demos.telerik.com/aspnet-ajax/treeview/examples/overview/defaultcs.aspx). I notice that on that page the current page continues to be selected when you traverse through the Tree. I am trying to achieve the same result, but currently when I traverse my tree, it deselects my current node.

Is there a setting I have missed?

<telerik:RadTreeView ID="RadTreeView1" runat="server" DataSourceID="menu" Skin="custom" OnClientNodeClicked="ClientNodeClicked" MultipleSelect="true" OnClientLoad="ParentHighlight"></telerik:RadTreeView>
<telerik:RadSiteMapDataSource ID="menu" runat="server" SiteMapFile="site.sitemap" ShowStartingNode="false" />

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 10 Jun 2013, 03:02 PM
Hello,

I would like to clarify that by default the RadTreeView controls does not deselect any already selected RadTreeNode while the user is traversing down the tree view. The selection is changed once the user selects a new node. Could you please clarify whether you perform a post back while expanding/collapsing node or you are navigating to other pages? This could be caused by setting a NavigateURL property of a node object.

Regards,
Boyan Dimitrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TreeView
Asked by
Jason
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or