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

Custom EmbeddedSkins

2 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
reza
Top achievements
Rank 1
reza asked on 04 May 2011, 07:37 PM
Hi
I've read the document on http://www.telerik.com/help/aspnet-ajax/radstylesheetmanager.html about how to embed our custom skins in an assembly to have the performance point by RadStyleSheetManager control.
My question is : 
Is there any possibility to embed multiple skins for different Rad Controls and just make ONE entry in RadStyleSheetManager ?
Please consider this markup:

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    <StyleSheets>
        <telerik:StyleSheetReference Name="TelerikCustomSkins.TelerikSkinForComboBox.css"
            Assembly="TelerikCustomSkins"></telerik:StyleSheetReference>
    </StyleSheets>
</telerik:RadStyleSheetManager>

I want to change this to :

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    <StyleSheets>
        <telerik:StyleSheetReference Name="TelerikCustomSkins.COMMEN.css"
            Assembly="TelerikCustomSkins"></telerik:StyleSheetReference>
    </StyleSheets>
</telerik:RadStyleSheetManager>

and for example if I use my custom skin for RadInput , the special css for RadInput , 
and if I use another custom skin for RadButton , the special css for RadButton been loded by RadStyleSheetManager.

I want to get rid of adding multiple entries to <StyleSheets> part of RadStyleSheetManager.
If it's not possible , are these added CSS references (for different custom skins) just loaded when they are required(when custom skins are used)?

Thank you very much for your feedbacks?

2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 11 May 2011, 10:30 AM
Hi reza,

This feature is not supported by RadStyleSheetManager. It is very custom and if you want to minimize the configuration of the custom skins of the different controls you are using, you can inherit RadStyleSheetManager and implement your custom logic in the inheritor. The most suitable method to override is OnPreRender.

Regarding your second question, RadStyleSheetManager registers every style sheet that is in its StyleSheets collection of style sheet references.

I hope this helps.

Greetings,
Simon
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
reza
Top achievements
Rank 1
answered on 18 May 2011, 09:26 AM
Yes , Thank you very much
Tags
General Discussions
Asked by
reza
Top achievements
Rank 1
Answers by
Simon
Telerik team
reza
Top achievements
Rank 1
Share this question
or