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

Combining Skin CSS Files

2 Answers 90 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 15 Apr 2011, 10:31 PM
Is there a way I can utilize the skinning functionality for the RadWindow, but instead of keeping the CSS files in the /skins/ folder (/skins/Window.css and /skins/MySkin/Window.MySkin.css), merge them into my site CSS file?  I am working on site optimization and I would like to remove the 2 extra server calls.

2 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 19 Apr 2011, 11:56 AM
Hello Mark,

Yes, you could put base style and skin specific file to your own CSS file and to use it external resources, but it should be done very carefully in order to apply each different CSS in the right place in the right order. Otherwise some styles could be missed or overridden and the whole layout could be broken. Also if you use that way, you shoud be sure that RadWindow properties for embedded base stylesheet and embedded skins are set to false:

<telerik:RadWindow ID="rw1" runat="server" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false" Skin="Default"></telerik:RadWindow>

Also if you are using the Telerik Default (or any other skin) skin, you should specify it via the Skin property.

I would not recommend that way as I am not quite sure if it will work in practice the right way. I would suggest instead to use add RadStyleSheetManager to your application. RadStyleSheetManager control gives developers the advantage of a simple drag-and-drop to achieve the combination of resources to a single request. All you need is to add a RadStyleSheetManager to your page and the stylesheet requests will be combined into a single request.

Best wishes,
Bojo
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.

0
Mark
Top achievements
Rank 1
answered on 19 Apr 2011, 02:53 PM
Worked like a charm.  Thanks for the help.
Tags
Window
Asked by
Mark
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Mark
Top achievements
Rank 1
Share this question
or