开发者

Is RadStyleSheetManager only for Telerik Controls CSS or can it be used to combine all CSS for a site?

开发者 https://www.devze.com 2023-03-18 09:46 出处:网络
Is RadStyleSheetManager only for Telerik Controls CSS or can it be used to combine all CSS for a site?

Is RadStyleSheetManager only for Telerik Controls CSS or can it be used to combine all CSS for a site?

I'm a little confused because the description on Telerik's site states:

By default each of the RadControls for ASP.NET Ajax serves开发者_开发问答 a set of files (stylesheets) needed for its proper client-side look.

Should I be able to use my own CSS stylesheets in there and have them be combined?


You can use the RadStyleSheetManager for your own stylesheets. There are two ways of doing this depending on whether your stylesheet is an embedded resource or just a file on your webserver.

Note with option 2 you have to add a key to your application settings object like so:

<appSettings>
    <add key="Telerik.Web.UI.StyleSheetFolders" value="/style/,/RadControls/" />
</appSettings>

Once registered with the RadStyleSheetManager, your css files will be combined with whatever other stylesheets the manager is serving up

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号