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

Setting skin for a control type in code behind

1 Answer 135 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 13 Feb 2013, 06:19 PM
In the web.config we can set a global skin:
<add key="Telerik.Skin" value="Office2007"/>
And in the code behind we can do the equivalent:
RadSkinManagerMain.Skin = "Office2007";
But in the web.config we can also set a global skin for a particular control type:
<add key="Telerik.ComboBox.Skin" value="Metro" />
Is there an equivalent to this that can be used in the code behind through RadSkinManager?

1 Answer, 1 is accepted

Sort by
0
Accepted
Angel Petrov
Telerik team
answered on 18 Feb 2013, 12:32 PM
Hi Rob,

The code-behind equivalent of this is:
SkinManager1.TargetControls.Add(ControlTypeToApplySkin.RadComboBox, "Metro");

Kind regards,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
SkinManager
Asked by
Dev
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or