I have registered the custom skin on the page and set the EnableEmbeddedSkin property to False.My custome skings are not working properly.
<
telerik:RadPanelBar ID="RadPanelbar1" runat="server" DataSourceID="SiteMapDataSource1" Skin="MySkin" EnableEmbeddedSkins="false" Style="margin-right: 0px"></telerik:RadPanelBar>
I am using Images in my custome skin but somehow the Images do not load.
It just shows plain text.
This is how my css file looks like:
/* Default RadPanelBar Custom skin */
.RadPanelbar_MySkin
{
background: #e0e0e0;
white-space: nowrap;
width: 167px !important;
font: normal 11px Arial, Verdana, Sans-serif;
}
.RadPanelbar_MySkin .rpText
{
padding-left: 23px;
vertical-align: super;
}
.RadPanelbar_MySkin .rpImage
{
margin: 4px 0px;
}
.RadPanelbar_MySkin
.rpRootGroup .rpLink
{
background: #e0e0e0 url('PanelBar/vNavHeader.gif') no-repeat;
line-height: 24px;
height: 30px;
color: white;
font-weight: bold;
}
.RadPanelbar_MySkin
.rpRootGroup .rpLink:hover
{
color: #e0e0e0;
}
.RadPanelbar_MySkin
.rpRootGroup .rpExpanded,
.RadPanelbar_MySkin .rpRootGroup .rpLink:hover .rpExpanded
{
background: #e0e0e0 url('PanelBar/vNavHeaderExpanded.gif') no-repeat !important;
height: 25px;
}
.RadPanelbar_MySkin .rpRootGroup .rpSelected
{
text-decoration: underline;
}
.RadPanelbar_MySkin
.rpGroup .rpLink
{
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOut.gif') no-repeat;
line-height: 23px;
height: 23px;
font-weight: normal;
}
.RadPanelbar_MySkin .rpGroup .rpExpanded,
.RadPanelbar_MySkin .rpGroup .rpLink:hover .rpExpanded
{
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOut.gif') no-repeat !important;
height: 23px !important;
line-height: 27px !important;
overflow: hidden !important;
color: white !important;
}
.RadPanelbar_MySkin
.rpGroup .rpLast .rpLink
{
background: #e0e0e0 url('PanelBar/vNavSubBtmMenuItemOut.gif') no-repeat;
height: 31px;
}
.RadPanelbar_MySkin
.rpGroup .rpLast .rpLink:hover
{
background: #e0e0e0 url('PanelBar/vNavSubBtmMenuItemOver.gif') no-repeat;
height: 31px;
}
.RadPanelbar_MySkin
.rpGroup .rpLink
{
color: white;
}
.RadPanelbar_MySkin
.rpGroup .rpLink:hover
{
color: #0066cc;
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOver.gif') no-repeat;
}
.RadPanelbar_MySkin
.rpGroup .rpSelected
{
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOver.gif') no-repeat;
text-decoration: underline;
color: white;
}
.RadPanelbar_MySkin
.rpGroup .rpLast .rpSelected
{
background: #e0e0e0 url('PanelBar/vNavSubBtmMenuItemOver.gif') no-repeat;
text-decoration: underline;
color: white;
}
.RadPanelbar_MySkin
.rpRootGroup .rpExpanded .rpText
{
line-height: 25px;
color: white;
font-weight: bold;
}
.RadPanelbar_MySkin
.rpGroup .rpSelected .rpText
{
font-weight: normal;
}
.RadPanelbar_MySkin
.rpGroup .rpExpanded .rpText
{
color: white;
font-weight: normal;
}
.RadPanelbar_MySkin
.rpLevel2 .text
{
background: no-repeat left center;
margin-left: 15px;
padding-left: 18px;
line-height: 23px;
}
.RadPanelbar_MySkin
.rpLevel2 .selected .text
{
background: no-repeat left center;
margin-left: 15px;
padding-left: 18px;
}
.RadPanelbar_MySkin
.rpDisabled .text
{
color: #ccc;
cursor: default;
}
.RadPanelbar_MySkin ul.rpRootGroup .rpDisabled:hover,
.RadPanelbar_MySkin .rpRootGroup .rpDisabled .text
{
background: #e0e0e0 url('PanelBar/vNavHeader.gif') no-repeat;
color: #ccc;
cursor: default;
}
.RadPanelbar_MySkin
.rpRootGroup .rpGroup .rpDisabled:hover,
.RadPanelbar_MySkin .rpRootGroup .rpGroup .rpDisabled .rpText
{
text-decoration: none;
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOut.gif') no-repeat;
color: #ccc;
cursor: default;
}
.RadPanelbar_MySkin .rpRootGroup .rpGroup .rpLevel2 .rpDisabled .rpText
{
background: no-repeat left center;
margin-left: 15px;
padding-left: 18px;
line-height: 23px;
}
Please suggest what I am doing wrong here?