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

Want to define global skin

1 Answer 193 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Web Services
Top achievements
Rank 2
Web Services asked on 19 Aug 2011, 03:01 PM
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?

1 Answer, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 22 Aug 2011, 12:05 PM
Hello,

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:
<appSettings>
   <!-- Sets the skin for all RadControls to Hay -->
   <add key="Telerik.Skin" value="Hay"/>
</appSettings>

Hope this helps.

Greetings,
Niko
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 >>

Tags
FormDecorator
Asked by
Web Services
Top achievements
Rank 2
Answers by
Niko
Telerik team
Share this question
or