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

Forums / Designing with Sitefinity / Site Panelbar Hide Current Page

Site Panelbar Hide Current Page

2 posts, 1 answered
  1. Christine
    Christine avatar
    5 posts
    Registered:
    08 Jan 2010
    06 Apr 2010
    Link to this post
    I have a Site Panelbar set up in a right column for inner pages within my Sitefinity website.  For the current page, I would like to display its sibling pages in the Site Panelbar, but not itself. 

    Parent (group page)
    -- Sub Page One
    -- Sub Page Two
    -- Sub Page Three

    So considering the structure above, if I am viewing the Sub Page Two page, I would like to show the following in the Site Panelbar:
    -- Sub Page One
    -- Sub Page Three

    Both of the following sets of values have the same effect.  The correct subpages are shown, but instead of hiding the current page, it selects it:

    StartingNodeOffset = -1
    StartFromCurrentNode = True
    ShowStartingNode = False
    or
    StartingNodeOffset = 1
    StartFromCurrentNode = False
    ShowStartingNode = False

    The above values result in the following being displayed in the Site Panelbar:
    -- Sub Page One
    -- Sub Page Two (selected)
    -- Sub Page Three

    Is there an easy way to accomplish the result I am looking for?

    Thanks for your help!


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Apr 2010
    Link to this post
    Hello Christine,

    You could add the following line OnPreRender of the RadPanelBar control

    RadPanelbar1.SelectedItem.Visible = false;

    This will hide the selected item.

    Best wishes,
    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.
    Answered
2 posts, 1 answered