Attempting to use ASP .NET Themes with Embedded Resources.

6 posts, 0 answers
  1. Allen Smothers
    Allen Smothers avatar
    40 posts
    Member since:
    Nov 2006

    Posted 30 Nov 2009 Link to this post

    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


  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 03 Dec 2009 Link to this post

    Hi Allen Smothers,

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Allen Smothers
    Allen Smothers avatar
    40 posts
    Member since:
    Nov 2006

    Posted 03 Dec 2009 Link to this post

    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
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 08 Dec 2009 Link to this post

    Hello Allen Smothers,

    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.
  6. parag
    parag avatar
    5 posts
    Member since:
    Jul 2011

    Posted 04 Sep 2011 Link to this post

    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
  7. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 08 Sep 2011 Link to this post

    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

    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 >>

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017