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

RADMenu - Separator

3 Answers 235 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 2
Iron
Veteran
Keith asked on 28 Sep 2011, 10:34 PM
I'm needing a Separator to show up on a verticle menu, but I'm struggling to figure out how to do it when the menu's source is a standard SiteMap file at the root of the web application.

What I want is something like:

First
Second
__________
Third
Fourth
Fifth
__________
Sixth


What do I need to put in the siteMapNode element to make this work?  I've tried using attribute IsSeparator="true", but that did not seem to help.  I have also tried a series of values for the attribute "title".

Best Wishes,
Keith

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Sep 2011, 06:07 AM
Hello Keith,

Try the following markup and CSS to show a seperator on a vertical menu which worked as expected on my end.
aspx:
<telerik:RadMenu ID="RadMenu1" runat="server" Flow="Vertical">
  <Items>
      <telerik:RadMenuItem Text="First">
      </telerik:RadMenuItem>
      <telerik:RadMenuItem Text="Second">
      </telerik:RadMenuItem>
      <telerik:RadMenuItem CssClass="MenuItem" IsSeparator="true">
      </telerik:RadMenuItem>
  </Items>
</telerik:RadMenu>
CSS:
<style type="text/css">
.MenuItem
{
  background-color: ActiveBorder !important;
}
</style>

Thanks,
Princy.
0
Keith
Top achievements
Rank 2
Iron
Veteran
answered on 29 Sep 2011, 02:01 PM
I see that you are doing it within the declaration of the control.  I'm trying to populate it from the SiteMap however.

0
Kate
Telerik team
answered on 03 Oct 2011, 03:22 PM
Hi Keith,

Please take a look at how it could be achieved using a SiteMap and a RadMenu control in the following demo

Regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Menu
Asked by
Keith
Top achievements
Rank 2
Iron
Veteran
Answers by
Princy
Top achievements
Rank 2
Keith
Top achievements
Rank 2
Iron
Veteran
Kate
Telerik team
Share this question
or