Allen Smothers
Top achievements
Rank 2
Allen Smothers
asked on 30 Nov 2009, 09:18 PM
Hello,
I'm attempting to utilize ASP.NET's Themes with Embedded Resources using Telerik's RadStyleSheetManager.
I'm using VS 2008, IIS 6
Can this be done? If so, do you a resource on how to go about do it?
As I'm setting up my embedded resources via http://www.telerik.com/help/aspnet-ajax/radstylesheetmanager.html is there a way to globally set EnableEmbeddedSkins="False" for all my custom skinned Telerik controls? I'm unsure how to get it to work with the simpler .skin file. I am able to get it to work perfectly when I set EnableEmbeddedSkins="False" on each control individually.
Any ideas?
Thanks in advance!
Allen
5 Answers, 1 is accepted
0
Hi Allen Smothers,
Yes, there is a way to globally set the EnableEmbeddedSkins property for all RadControls on your project:
If you need to globally disable the embedded skins for a particular RadControl add these lines in the web.config file:
More information is available at the bottom half of this article.
All the best,
Veselin Vasilev
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.
Yes, there is a way to globally set the EnableEmbeddedSkins property for all RadControls on your project:
<
appSettings
>
<!-- Disables the embedded skins for all RadControls -->
<
add
key
=
"Telerik.EnableEmbeddedSkins"
value
=
"false"
/>
<
add
key
=
"Telerik.EnableEmbeddedBaseStylesheet"
value
=
"false"
/>
</
appSettings
>
If you need to globally disable the embedded skins for a particular RadControl add these lines in the web.config file:
<
appSettings
>
<!-- Disables the embedded skins for RadMenu instances -->
<
add
key
=
"Telerik.Menu.EnableEmbeddedSkins"
value
=
"false"
/>
<
add
key
=
"Telerik.Menu.EnableEmbeddedBaseStylesheet"
value
=
"false"
/>
</
appSettings
>
More information is available at the bottom half of this article.
All the best,
Veselin Vasilev
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
Allen Smothers
Top achievements
Rank 2
answered on 03 Dec 2009, 03:53 PM
I see now. Thanks for the help.
Say I had a custom theme selector on my application where clients could choose their own theme, how would I set up my embedded resources file to accomplish this?
Thanks again for your help!
-Allen
0
Hello Allen Smothers,
Veselin Vasilev
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.
I suppose that the controls in each theme will have a Skin property set. So, changing the Theme you change the Skin. Am I missing something?
Regards,Veselin Vasilev
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
parag
Top achievements
Rank 1
answered on 04 Sep 2011, 06:17 AM
Hi,
I have similar issue. I plan to have few themes defined in an assembly (one folder per theme containing resources(css , images) and .skin file in it).Inside .skin file I will set Skin property for each control type. I will mark all resources (css,.skin,images) as embedded resources. I want to use stylesheetmanager to load them. Can I use standard ASP.Net theme mechanism to change theme?
Regards
Parag
I have similar issue. I plan to have few themes defined in an assembly (one folder per theme containing resources(css , images) and .skin file in it).Inside .skin file I will set Skin property for each control type. I will mark all resources (css,.skin,images) as embedded resources. I want to use stylesheetmanager to load them. Can I use standard ASP.Net theme mechanism to change theme?
Regards
Parag
0
Hello Parag,
Here you can find more detailed explanation on how you can use the RadStyleSheetManager and include a custom stylesheet as a WebResources in the RadStyleSheetManager.
Best wishes,
Kate
the Telerik team
Here you can find more detailed explanation on how you can use the RadStyleSheetManager and include a custom stylesheet as a WebResources in the RadStyleSheetManager.
Best wishes,
Kate
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 >>