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

Forums / General Discussions / SF 4.1 - SitefinitySiteMap and RadPanel

SF 4.1 - SitefinitySiteMap and RadPanel

2 posts, 0 answered
  1. Ed Sirijintakarn
    Ed Sirijintakarn avatar
    19 posts
    Registered:
    02 Feb 2010
    28 Apr 2011
    Link to this post
    More SiteMap-related woes. As reported in other threads, asp:SiteMapPath is no longer working in 4.1.

    In addition, I would also like to add that using the RadPanel with the SitefinitySiteMap provider is not working correctly. I can see the entire menu being ouput in the html, however, menus are not expanding when a sub-page is viewed. Here is the code that I am using (which was working fine in 4.0):

    Menu.ascx
    <asp:SiteMapDataSource ID="ds_SiteMap" runat="server"
        ShowStartingNode="false" 
        SiteMapProvider="SitefinitySiteMap"  />
      
    <telerik:RadPanelBar ID="rad_PanelBar" runat="server"
        DataSourceID="ds_SiteMap" 
        CssClass="MainMenu"
        EnableEmbeddedBaseStylesheet="false"
        EnableEmbeddedSkins="false"
        MaxDataBindDepth="3" />

    Menu.ascx.cs
    protected override void OnInit(EventArgs e)
            {
                base.OnInit(e);
      
                this.rad_PanelBar.ItemDataBound += new Telerik.Web.UI.RadPanelBarEventHandler(rad_PanelBar_ItemDataBound);
            }
      
            void rad_PanelBar_ItemDataBound(object sender, Telerik.Web.UI.RadPanelBarEventArgs e)
            {
                if (((Telerik.Sitefinity.Web.PageSiteNode)e.Item.DataItem).ShowInNavigation == false)
                {
                    e.Item.Visible = false;
                }
            }

    Will SiteMap-related issues be fixed soon?

    Thanks,
    Ed Sirijintakarn
    Internetiks, Inc.
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    02 May 2011
    Link to this post
    Hello Ed Sirijintakarn,

    The problem with the SiteMap is that you need to specify the SiteMap provider in your code. Please take a look at  this forum thread, there's an active discussion going on concerning the reported problem, as well as several offered solutions. I hope you find this information useful.

    Best wishes,
    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