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

An order of external style sheet files

1 Answer 47 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Mikiya Sato
Top achievements
Rank 1
Mikiya Sato asked on 15 Dec 2011, 07:13 AM

Hello,

About generated combined style sheet file. 
I expected that my custom styles will be load after a telerik built in styles. but there is it first. 
How do I load it after build in styles?


<
telerik:RadStyleSheetManager runat="server" ID="RadStyleMn" >
    <CdnSettings TelerikCdn="Disabled" />
    <StyleSheets>
        <telerik:StyleSheetReference Path="~/Skins/CustomRadTreeVew.Web20.css"  />
    </StyleSheets>
</telerik:RadStyleSheetManager>


1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 19 Dec 2011, 09:06 PM
Hi Mikiya Sato,

There is no option to tell where to output style sheets added in the markup in relation to built-in style sheets. Since they are in the markup they are the first style sheet references, which exist in the style sheet collection; RadControls' and any other embedded style sheets are added at a later stage and so they appear after the ones in the markup.

Currently, you can explicitly add the style sheets of a control before the one in the markup. Of course, if you have lots of controls this will be a tedious operation, however it is the only way.

I hope this helps.

Kind regards,
Simon
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ScriptManager and StyleSheetManager
Asked by
Mikiya Sato
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or