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

Custom skin?

1 Answer 74 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.
Michael Dunbar
Top achievements
Rank 2
Michael Dunbar asked on 26 Nov 2010, 10:37 AM
Is it possible?

I've read this thread on how to use multiple themes for controls, which I must admit I am not 100% sure I understand. There only appears to be one flattened CSS style sheet for each theme now, as opposed to for each control that you can easily modify.

I want to design my own menu style and use the Windows 7 theme for the other controls on my application (i.e. Windows, Grids etc).

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 26 Nov 2010, 11:00 AM
Hello Michael,

We have the same scenario in our online demos application (although it seems rather hidden). The side navigation (on the left) and the top, products menu are a PanelBar and Menu component, respectively. We targeted them by having the following document outline:

<div id="custom-menu">
    <%= Html.Telerik.Menu() ... %>
</div>
<div class="example">...</div>

Since id-based CSS selectors take precedence over other selectors, you can target your CSS like this:

#custom-menu .t-link {
    background: transparent url('item-background.png') repeat-x 0 0; /* etc. */
}


And thus, override the theme.

Regards,
Alex Gyoshev
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
Tags
Menu
Asked by
Michael Dunbar
Top achievements
Rank 2
Answers by
Alex Gyoshev
Telerik team
Share this question
or