Using 2008.Q3 skins with 2009.Q1 Release : RadTreeView
The official Q3 skins for RadTreeView are attached to this post (Q3-Skins-RadTreeView.zip).
The same instructions can also be applied for custom skins (since the RadTreeView did not change its CSS class names).
There are two ways of using the attached skins (SkinName is the skin that you want to use):
ASP.NET Themes
This method is useful if you need to use the skin for all controls of a specific type in the whole web application.
You need to:
1. change the <pages> declaration in your web.config to <pages
theme="SkinName"> e.g.
<pages theme="Gray">
2. add the following lines to the <appSettings> section of your web.config:
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.Skin" value="SkinName"/>
e.g.
<add key="Telerik.Skin" value="Gray"/>
3. create an ASP.NET Theme, named SkinName and add the following all files and folders from the Q3-Skins-RadTreeView archive:
Skins/ TreeView.css
Skins/SkinName/*
e.g.
Skins/TreeView.css
Skins/Gray/TreeView.Gray.css
Skins/Gray/TreeView/*.*
A sample project, demonstrating this method, is attached to this post (Q3-Skins-ASPNETThemes-RadTreeView.zip).
Direct skin registration
This method is useful if you have fewer instances of RadTreeView.
You need to:
1. set the Skin property accordingly
2. set the EnableEmbeddedSkins and the EnableEmbeddedBaseStylesheet properties to false
3. register the skin file using the following CSS:
<link rel="stylesheet" type="text/css" href="~/Skins/ TreeView.css" runat="server " />
<link rel="stylesheet"
type="text/css" href="~/Skins/SkinName/TreeView.SkinName.css" runat="server" />
e.g.
<link rel="stylesheet" type="text/css" href="~/Skins/ TreeView.css" runat="server" />
<link rel="stylesheet" type="text/css" href="~/Skins/Gray/TreeView. Gray.css" runat="server"/>
A sample project, demonstrating this method, is attached to this post (Q3-Skins-DirectSkinRegistration-RadTreeView.zip).