right i've read so many threads on how to implement a custom skin for a telerik menu onto my webpage this is what I currently have coded.
In my web config I have:
<appSettings>
<add key="Telerik.Skin" value="Glow2"/>
<add key="Telerik.EnableEmbeddedSkins" value="false"/>
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false"/>
<add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" /></appSettings>
in my site master I have
<link href="Skins/Glow2/Menu.Glow2.css" rel="stylesheet" type="text/css" />
and for my menu code I use:
<li>
<asp:LoginView ID="SysAdminLV" runat="server">
<RoleGroups>
<asp:RoleGroup Roles="Masters">
<ContentTemplate>
<telerik:RadMenu ID="SysAMenu" runat="server" Skin="Glow2">
<Items>
<telerik:RadMenuItem runat="server" Text="Sys Admin" NavigateUrl="~/Default.aspx">
<Items>
<telerik:RadMenuItem runat="server" Text="Create User" NavigateUrl="~/Staff/Masters/New_User.aspx"></telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Manage Users" NavigateUrl="~/Staff/Masters/Manage_Users.aspx"></telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
</asp:LoginView>
</li>
Now my custom skin is called Glow2 because I made very little changes to the "Glow" skin, im not getting an error or anything the page loads fine its just the links that I have do not pull through the syling from the Glow2 Skin. attached is what the page looks like when loaded.my "home" and "Sysadmin" links are telerik the rest are coded through CSS at the moment.
3 Answers, 1 is accepted
It is possible that disabling the base style sheets lead to the appearance shown in the screenshot:
<
add
key
=
"Telerik.EnableEmbeddedBaseStylesheet"
value
=
"false"
/>
Regards,
Ivan Danchev
Telerik
div.RadMenu_Glow2 {
border-color: rgb(255, 255, 0);
}
div.RadMenu_Glow2 .rmItem .rmLink {
background-color: rgb(35, 41, 48);
}
div.RadMenu_Glow2 .rmItem .rmLink:hover {
color: rgb(255, 222, 67);
background-color: rgb(35, 41, 48);
}
div.RadMenu_Glow2 .rmItem .rmLink .rmExpandDown {
border-color: rgb(255, 255, 0);
color: rgb(255, 255, 67);
}
div.RadMenu_Glow2 .rmItem .rmExpanded {
border-color: rgb(255, 255, 0);
}
div.RadMenu_Glow2 .rmItem .rmGroup {
border-color: rgb(255, 255, 0);
background-color: rgb(35, 41, 48);
}
div.RadMenu_Glow2 .rmGroup .rmItem .rmLink {
border-color: rgb(255, 255, 0);
background-color: rgb(35, 41, 48);
}
div.RadMenu_Glow2 .rmGroup .rmItem .rmLink:hover {
border-color: rgb(255, 255, 0);
color: rgb(255, 255, 255);
background-color: rgb(255, 222, 67);
Thank you for posting the CSS.
Please try the last eight modified rules:
​
html div.RadMenu_Glow
2
{
border
:
1px
solid
;
border-color
:
rgb
(
255
,
255
,
0
);
}
html div.RadMenu_Glow
2
.rmItem .rmLink {
background-color
:
rgb
(
35
,
41
,
48
);
}
html div.RadMenu_Glow
2
.rmItem .rmLink:hover {
color
:
rgb
(
255
,
222
,
67
);
background-color
:
rgb
(
35
,
41
,
48
);
background-image
:
none
;
}
html div.RadMenu_Glow
2
.rmItem .rmLink .rmExpandDown {
border
:
1px
solid
;
border-color
:
rgb
(
255
,
255
,
0
);
color
:
rgb
(
255
,
255
,
67
);
}
html div.RadMenu_Glow
2
.rmItem .rmExpanded {
border
:
1px
solid
;
border-color
:
rgb
(
255
,
255
,
0
);
}
html div.RadMenu_Glow
2
.rmItem .rmGroup {
border
:
1px
solid
;
border-color
:
rgb
(
255
,
255
,
0
);
background-color
:
rgb
(
35
,
41
,
48
);
}
html div.RadMenu_Glow
2
.rmGroup .rmItem .rmLink {
border-color
:
rgb
(
255
,
255
,
0
);
background-color
:
rgb
(
35
,
41
,
48
);
background-image
:
none
;
}
html div.RadMenu_Glow
2
.rmGroup .rmItem .rmLink:hover {
border-color
:
rgb
(
255
,
255
,
0
);
color
:
rgb
(
255
,
255
,
255
);
background-color
:
rgb
(
255
,
222
,
67
);
background-image
:
none
;
}
In order to apply some of them a stronger selector is needed, which is why I added html to the selectors. In addition the background image must be removed from some elements in order for the background to be visible. For others elements a border has to be set in addition to the border-color property.
I hope this was useful and will help you customize the control's appearance according to your preference.
Regards,
Ivan Danchev
Telerik