The application that I am working with has hundreds of style sheets for different clients that are dynamically loaded based on client configuration. All style sheet references are defined in the application's master page. After adding a few newer Telerik controls to some of the pages along with the additional custom skin css references, we have reached the 31+ max css limit for IE and various controls are beggining to experience style/rendering issues. The RadStyleSheetManager seems like a good solution to implement in order to consolidate these multiple css references into one.
From the little documentation available for the RadStyleSheetManager, it seems that it only works for style sheets that are in a separate class library defined as a web resource... is this the only way? Can the RadStyleSheetManager combine css embedded resources that are local to the project? Something like ...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadStyleSheetManager._Default" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" > |
<head runat="server"> |
<title></title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" Runat="server"> |
<StyleSheets> |
<telerik:StyleSheetReference Path="Stylesheet1.css" Name="StyleSheet1.css" /> |
<telerik:StyleSheetReference Path="Stylesheet2.css" Name="StyleSheet2.css" /> |
<telerik:StyleSheetReference Path="Stylesheet3.css" Name="StyleSheet3.css" /> |
</StyleSheets> |
</telerik:RadStyleSheetManager> |
<div> |
<div class="Style1">Style 1</div> |
<div class="Style2">Style 2</div> |
<div class="Style3">Style 3</div> |
</div> |
</form> |
</body> |
</html> |