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

[Solved] Add a intermediate line in sub-menu?

1 Answer 70 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dadv
Top achievements
Rank 1
Dadv asked on 01 Feb 2011, 11:52 AM
Hi,
I have this configuration of menu :
<% Html.Telerik().Menu()
       .Name("Menu")
       .Items(menu =>
       {
           menu.Add().Text("Clients")                          
                                 .Items(i =>{
                                             i.Add() .Text("Add");
                                             i.Add() .Text("-");
                                             i.Add() .Text("List");
                                            });
      }).Render();     %>

I would like to change  [  i.Add() .Text("-"); ] by an horizontal rule (HR).
I try to use Content, but it add a sub-menu instead.

Any solution?
Thx for the reply.

1 Answer, 1 is accepted

Sort by
0
Dadv
Top achievements
Rank 1
answered on 01 Feb 2011, 12:02 PM
I found a way by using CSS :

.menuSubLine
{
    border-bottom-style: solid !important;
    border-bottom-width: medium !important;
    border-bottom-color: #C0C0C0 !important;
}
<% Html.Telerik().Menu()
       .Name("Menu")
       .Items(menu =>
       {
           menu.Add().Text("Clients")                         
                                 .Items(i =>{
                                             i.Add() .Text("Add").HtmlAttributes(new {@class="menuSubLine"});                                            
                                             i.Add() .Text("List");
                                            });
      }).Render();     %>

Forget it.
Tags
Menu
Asked by
Dadv
Top achievements
Rank 1
Answers by
Dadv
Top achievements
Rank 1
Share this question
or