StyleSheetManager

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 11 Jan 2010 Link to this post

    Why am I not able to do this with the stylesheetmanager?
        <telerik:RadStyleSheetManager ID="ssm" runat="server" EnableStyleSheetCombine="true"
            <StyleSheets> 
                <telerik:StyleSheetReference Path="~/Apps/RTO/styles/rto.css"  /> 
                <telerik:StyleSheetReference Path="~/Apps/RTO/styles/popup.css" /> 
            </StyleSheets> 
        </telerik:RadStyleSheetManager> 

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 12 Jan 2010 Link to this post

    Hi Steve,

    Thank you for contacting us.

    A stylesheet  file should be included as Assembly WebResource in order to be merged by RadStylesheetManager, please find more information about this here.

    Greetings,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 12 Jan 2010 Link to this post

    Why is that?  The Scriptmanager allows adding external .js files

    Just curious more than anything...
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 13 Jan 2010 Link to this post

    Hi Steve,

    RadStyleSheetManager does not combine external files because of the many potential security issues that stem from using direct file access. External stylesheet references can also point to URLs and accessing them from the server is not desirable.

    Our suggestion is to either merge them by hand (or with build script, for example) or embed them in an external assembly.

    I hope this helps.

    All the best,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top