More in this section

Forums / Developing with Sitefinity / Navigation treeview current node expanded on loading

Navigation treeview current node expanded on loading

2 posts, 0 answered
  1. Scott Rozman
    Scott Rozman avatar
    93 posts
    10 Oct 2012
    31 Jan 2012
    Link to this post
    In Sitefinity 3.x there was a recommended way to have the treeview navigation open, so you could see the child nodes of the selected node.

    There is no widget template for the navigation widget... what is the recommended way to accomplish this for SF 4.x?
    covered some of this a year ago.

    Do you have to basically create a new widget and use the radtreeview directly??

    thanks in advance.
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    30 Oct 2017
    03 Feb 2012
    Link to this post

    You can easily create an external template in Visual Studio that contains a control capable of representing hierarchical data structure, and then use it as an external template for the default navigation widget in Sitefinity - when  you edit the widget in its Design settings there's an option to specify LayoutTemplatePath - this is the relative path to your external template. The datasource settings will be persisted from the current settings specified for the widget, and the visual representation will be controlled by the external template. For more information and a sample for achieving the desired functionality, i believe you might find this forum thread useful.

    All the best,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered