+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Site TreeView highlight parent pages

Site TreeView highlight parent pages

2 posts, 0 answered
  1. Paul N
    Paul N avatar
    55 posts
    Registered:
    24 Apr 2010
    12 Sep 2010
    Link to this post
    Hi,

    I'm using a SiteTreeView control as a subnav for my site, with an off set of 1, so that you can navigate through the site, and go up 1 or 2 levels easily.

    At the moment I've styled it so that the selected page is highlighted in the SiteTreeView, by using the "rtSelected" class, but I was wondering if it was possible to highlight all the parent pages as well, possibly through sitefinity or through CSS.

    So that it would look something like this:

    Parent Page (highlighted)
          Subpage
          Subpage (highlighted)
                Sub-Subpage (Selected/Highlighted)
                Sub-Subpage
          Subpage

    Thanks,
    Paul
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Sep 2010
    Link to this post
    Hi Paul N,

    You can use RadTreeView client side API to set a css class over a given item. RadTreeNode object has methods - set_selected and set_cssClass that you can use.

    Kind regards,
    Ivan Dimitrov
    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
2 posts, 0 answered