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

Forums / Developing with Sitefinity / Menu in Panelbar with SiteMapDatasource

Menu in Panelbar with SiteMapDatasource

2 posts, 1 answered
  1. andreas
    andreas avatar
    1 posts
    Registered:
    08 Nov 2007
    18 Jun 2009
    Link to this post
    Hello!

    I want to integrate RadPanelBar with RadMenu like in the KB.

    How do I set the StartingNodeUrl to "SideNav", because my Sitemap looks like:



    level1 level2 level3 level4

    -Sitemap -TopNav
    -Item1 topnav
    -Item2 topnav
    -MainNav
    -item1 mainnav
    -item2 mainnav
    -SideNav
    -item1 sidenav
    -item11 sidenav
    -item12 sidenav
    item 121 sidenav
    item 122 sidenav
    -item2 sidenav
    -item21 sidenav
    -item22 sidenav
    item221 sidenav



    Level2/level3 should be Panelitems and level4 should be a Radmenu item expanded to the right.

    please help me!!

  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Jun 2009
    Link to this post
    Hello Andreas,

    There are basically several things you might want to. Each of these two controls has a code behind file, and a OnDataBound event. In this event you might check if the current item's level is higher than the one you need, and hide the item if necessary. Here are the code behind files for the controls you need:
    • ~/Sitefinity/UserControls/Navigation35/SiteMenu.cs
    • ~/Sitefinity/UserControls/Navigation35/SitePanelbar.cs

    As for the SiteMapDataSource, you might set the property  StartingNodeUrl="~/SiteNav.aspx" in the same code behind files.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
    Answered
2 posts, 1 answered