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

RadMenu SiteMap ItemSeparator

1 Answer 154 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
vaibhav asked on 19 Oct 2010, 03:08 PM
I have a radmenu populated from a sharepoint 2010 sitemap. I want to have a separator after each menu item.
Have tried the following post but it doesnt work . Maybe the post is not specific to SharePoint and SiteMap. Is there any way to add seperator after each menu item in th code behind if the items are read from SharePoint default sitemap?

Please advise

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 01 Nov 2010, 11:53 AM
Hello vaibhav,

Let me suggest you populate the RadMenu via ASP.NET SiteMap that uses SPSiteMapProvider:
       ID="SiteMap" runat="server" />
   <telerik:RadMenu runat="server" ID="RadMenu1"

Then you can add separator items handling the OnItemDatabound event in this manner:
protected void OnDataBoundHandler(object sender, RadMenuEventArgs e)
    RadMenuItem separator = new RadMenuItem();
    separator.IsSeparator = true;
    e.Item.Owner.Items.Insert(e.Item.Index + 1, separator);

Best wishes,
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
Sharepoint Integration
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question