Want to define global skin

2 posts, 0 answers
  1. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 19 Aug 2011 Link to this post

    I'm using the form decorator and various controls and am using the skin windows7. I would like to globalize this in case I ever want to change it. I know I could just use VS find and replace, but it would be nice to set it in the web.config so I could change it really easily if I want. I was trying to use an app setting but it was giving me an error. Here's what I was trying to do

    <telerik:RadFormDecorator ID="decorator" Skin="<%=ConfigurationManager.AppSettings("siteSkin")%>" DecoratedControls="All" runat="server" />

    I know that my app setting is good because I just output it and I get Windows7. However, when I put it in that tag, I get an error. Am I doing something wrong or do you have a way to set the default to Windows7 in the web.config?
  2. Niko
    Niko avatar
    383 posts

    Posted 22 Aug 2011 Link to this post


    Please, refer to the following article - http://www.telerik.com/help/aspnet-ajax/introduction-skin-registration.html. There you will find a way to register a default global skin in the web.config. In short, you need to define the following AppSetting:
       <!-- Sets the skin for all RadControls to Hay -->
       <add key="Telerik.Skin" value="Hay"/>

    Hope this helps.

    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft R3 2016 release webinar banner
Back to Top