Prevent deselection of Nodes

2 posts, 0 answers
  1. Jason
    Jason avatar
    1 posts
    Member since:
    May 2012

    Posted 06 Jun 2013 Link to this post

    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" />

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 10 Jun 2013 Link to this post

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