This is a migrated thread and some comments may be shown as answers.

Set level in rad menu in SharePoint

5 Answers 150 Views
Menu
This is a migrated thread and some comments may be shown as answers.
DheepaB
Top achievements
Rank 1
DheepaB asked on 26 Jan 2009, 09:38 PM
I am trying to use rad menu for the top navigation in sharepoint custom master page. I noticed that it shows the home tab and every thing under that as a dropdown (2nd level) menu. Is there a way to display it from the second level, so that i see the second levels as the top level.
The hierarchy of my site is -
Home
    - Client
    - Admin
    - Research
I want to see the Client, Admin and Research items as the top level navigation.
Here is the code I have
<telerik:RadMenu ID="TopNavigationMenu" runat="server" DataSourceID="topSiteMap" EnableViewState="false" />
<asp:SiteMapDataSource
     ShowStartingNode="False"
     SiteMapProvider="SPNavigationProvider"
     id="topSiteMap"
     runat="server"
       StartingNodeUrl="sid:1002"
       StartFromCurrentNode="true"
       StartingNodeOffset="0"
       />

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 Jan 2009, 08:06 AM
Hello DheepaB,

RadMenu currently does not support this feature.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dennis
Top achievements
Rank 1
answered on 02 Feb 2009, 01:21 PM
Hello,

we would also need this feature. We're using DNN, not sharepoint but are using the telerik radmenu as part of a shopmodule (Catalook by DNNsoft). We would also need the telerik menu to be able to show only part of the menu. Without this option we can not use the telerik menu..

Any ideas if/when this would be implemented?

kind regards,
Dennis
0
MikeWiese
Top achievements
Rank 1
answered on 14 May 2009, 08:38 AM
I managed to hack something together to achieve this. It's not elegant, but may point out an avenue for further exploration.

I ended up manually data-binding my RadMenu ("SecondLevelMenu") in the Page_Load event, something like this:
SecondLevelMenu.DataSource = this.RootMenu.GetSecondLevelMenuItems(Request.Path);  
SecondLevelMenu.DataBind();  
 
The details of RootMenu don't really matter; it's just an object that contains its own internal model of my hierarchical menu structure, (a sort of Site map). The method "GetSecondLevelMenuItems" takes the given path, works out where we are in the hierarchy and and returns an array of second-level objects which are appropriate for the current page. It actually returns an array of SiteDataItem objects copied from the Telerik article "Binding to object-based datasources"

The main trick was that any SiteDataItem objects returned by my GetSecondLevelMenuItems() method had to have the ParentID set to null, in order that they displayed as if they were first-level menu items.

0
Chad Beard
Top achievements
Rank 1
answered on 10 Jul 2009, 08:08 PM
Hello All,

If you are using WSS 3.0  remove StartingNodeUrl="sid:1002" from you SIteMapDataSource (topSiteMap) and change the SiteMapProvider to "SPSiteMapProvider".

If you are using MOSS make sure you are using PortalSiteMapDataSource with "CombinedNavSiteMapProvider" as the SIteMapProvider.

The CombinedNavSiteMapProvider is available in MOSS only.

Hope this helps,

Chad

0
GACA
Top achievements
Rank 2
answered on 15 Oct 2015, 01:34 PM

Dears Any Solution to Solve Set level in rad menu in SharePoint 2013 site ?

 

Actually I have the Same Issue .

 Please Advise.

Tags
Menu
Asked by
DheepaB
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Dennis
Top achievements
Rank 1
MikeWiese
Top achievements
Rank 1
Chad Beard
Top achievements
Rank 1
GACA
Top achievements
Rank 2
Share this question
or