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

Modifiying CSS in Menu

0 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mario
Top achievements
Rank 1
Mario asked on 25 Jan 2011, 02:36 PM
Hi,

I have a little problem, im new using Telerik MVC controls, all controls are being very helpful in my development but i have a problem with CSS styles in my site. My company has a css stilesheet for menus, so i try to use this style using HtmlAttributes property, the code is:

 

<% Html.Telerik().Menu()
            .Name("sub-nav")
            .HtmlAttributes(new {@class="tabs"})
            .Items(menu =>
            {
                menu.Add()
                    .Text("Inicio")
                    .Action("Index", "Empresas");
                      
                menu.Add()
                    .Text("Reg. Visitas")
                    .Action("Index", "Visitas"); ;
                                  
            })
            .Render();
    %>

but the rendered HTML include t-widget, theader.... and tabs, i need only "tabs" styles. The generated code is:

 

<UL id=sub-nav class="t-widget t-reset t-header t-menu tabs" jQuery1295962360423="1"><LI class="t-item t-highlighted t-state-default">.....

And i need too to know how to set the style of the selected item.

Any help will be really helpful.

Thanks in advance.

 

 

 

 

 

Tags
General Discussions
Asked by
Mario
Top achievements
Rank 1
Share this question
or