Setting skin for a control type in code behind

2 posts, 1 answers
  1. Rob
    Rob avatar
    43 posts
    Member since:
    Aug 2010

    Posted 13 Feb 2013 Link to this post

    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?
  2. Answer
    Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 18 Feb 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top