Configure RadMenu in Sharepoint with a sitemap

4 posts, 1 answers
  1. Gordon
    Gordon avatar
    9 posts
    Member since:
    Aug 2008

    Posted 22 Sep 2008 Link to this post

    Ok so i've got RadMenu working in my Sharepoint site now by following the Telerik instructions. Can you give me some pointers how to link up a Sharepoint sitemap that will display dropdown menus and sub menus as shown in the Telerik RadMenu for Sharepoint example. Do I have to configure an xml data file and how do i hook this up to the Rad Menu in Sharepoint to show dropdowns and flyout menus from the dropdown. Not experienced enough i know but help appreciated because we are evaluating the Telerik controls with a view to buy.

    Thanks in Advance



    Gordon
  2. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 23 Sep 2008 Link to this post

    Hello Gordon,

    You should just bind it to a sitemap datasource:

    <telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="topSiteMap" Skin="Office2007" />
     
    I hope this helps,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Gordon
    Gordon avatar
    9 posts
    Member since:
    Aug 2008

    Posted 23 Sep 2008 Link to this post

    I have binded it to the topsitemap, but (pardon my ignorance) it only is showing high level items (home and other sites that have been created in the collection). Where therefore is topsitemap datasource configured so that RadMenu shows items as dropdown menu items and flyout submenu's too.

    Regards

    Gordon
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 23 Sep 2008 Link to this post

    Hello Gordon,

    The topSiteMap datasource is part of the default master page template. If you are using a custom master page you should make sure you are using the correct sitemapdatasource declaration. Here is how it looks for the menu in our sample site:

    <PublishingNavigation:PortalSiteMapDataSource ID="siteMapDataSource1" Runat="server"
        SiteMapProvider="CombinedNavSiteMapProvider" EnableViewState="true"
        StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="false"
        TreatStartingNodeAsCurrent="true" TrimNonCurrentTypes="Heading"/>


    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top