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

[Solved] EnableEmbeddedSkins setted on the web.config

3 Answers 345 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jorge Merino
Top achievements
Rank 1
Jorge Merino asked on 10 Sep 2009, 03:44 PM
Hello guys,

I have one Sharepoint site where I have pages with Rad Controls, when we start to develop that site we used the Sunset skin for our controls, that skin was setted on the web.config according with the Skin registration article. Now, our customer is asking us to change that Skin with one personalized but according with the Using skins in ASP.NET themes article, if we register one skin that is not embedded, we need to find all of the Rad Controls and set the EnableEmbeddedSkins property to false in order to avoid one Exception. Because we have a big amount of Rad Controls, do you know another way to set this property through the web.config file?.

Thanks for your reply.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Sep 2009, 07:59 AM
Hi Jorge,

You can use

<add key="Telerik.EnableEmbeddedSkins" value="false" />


Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jorge Merino
Top achievements
Rank 1
answered on 17 Sep 2009, 02:20 AM
Thanks for your reply, it solved partially my question because now, althought I can set the EnableEmbeddedSkins to false, I am not able to set on the web.config the path where the Rad Controls are going to look for the css files. How can I do that?. I remember you that I'm working with Sharepoint.
0
Dimo
Telerik team
answered on 17 Sep 2009, 04:04 PM
Hi Jorge,

RadControls for ASP.NET AJAX do not register non-embedded skins automatically - you have to do this, e.g. place the CSS files in an ASP.NET theme or register them manually with <link> tags.

Alternatively, you can use custom embedded skins and register them with RadStyleSheetManager. The benefit of this approach is that you don't have to take care of and specify the CSS files' physical location and the skins can be registered easily at runtime.

http://www.telerik.com/community/forums/aspnet-ajax/style-builder/tool-for-embedding-custom-skins-into-an-assembly.aspx

Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Jorge Merino
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jorge Merino
Top achievements
Rank 1
Share this question
or