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

Custom Skin + ASP.Net Theme + IE 31 style sheet limit

1 Answer 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gavin
Top achievements
Rank 1
Gavin asked on 10 Aug 2011, 01:28 AM
Hi,

I was wondering what the preferred method of using a custom skin (all controls) within a theme and what the possible impacts of combining the 65+ css files (base + skin as I need to tweak some of the base styles) into a smaller number so they load correctly in IE (31 style sheet limit issue).

Thanks
Gavin.

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 11 Aug 2011, 09:49 AM
Hi Gavin,

You can take advantage of RadStylesheetManager to load and combine the external CSS files into one single resource. To do so you need to:
  1. Add the following key to the web.config:
    <appSettings>
        <add key="Telerik.Web.UI.StyleSheetFolders" value="~/MyCssFolder" />
    </appSettings>
  2. Register the external file CSS files with RadStyleSheetManager:
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Path="MyCssFile1.css"/>
            ........
        </StyleSheets>
    </telerik:RadStyleSheetManager>

However, these external CSS files should not be located in the App_Themes folder because the theme's CSS files are registered automatically on the page during runtime as a <link> elements, and this behavior cannot be modified by RadStyleSheetManager.

Best wishes,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
Gavin
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or