Combining telerik scripts and custom scripts into single file

4 posts, 0 answers
  1. sonal
    sonal avatar
    15 posts
    Member since:
    Jul 2008

    Posted 31 Aug 2008 Link to this post

    Hi,
        I want all the Telerik scripts and custom scripts (non-telerik) to be combined into one file using the RadScriptManager and hence single request.
    Do i need to combine all the custom js files into an assembly and then use the <asp:ScriptReference>?  Is it  not possible to combine the custom scripts without adding them to an assembly?

    Thanks
    Sonal
  2. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 01 Sep 2008 Link to this post

    Telerik ScriptManager works as the asp ScriptManager as far as I know. I found this topic in the docs which explains how it works:

    http://www.telerik.com/help/aspnet-ajax/radscriptmanager.html

    Prangadj
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. sonal
    sonal avatar
    15 posts
    Member since:
    Jul 2008

    Posted 01 Sep 2008 Link to this post

    Hi,
         I had already tried the following:

    <telerik:RadScriptManager id=””runat=””>
     
    <Scripts>
      
    <asp:ScriptReference name=””Assembly=””Path=”/MyVirtualLocation/MyFile.js”>
     
    </Scripts>
    </telerik:RadScriptManager>

    But it gives error as:
    Resource not found in assembly "Telerik.Web.UI"

    Thanks
    Sonal

  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 03 Sep 2008 Link to this post

    Hi Sonal,

    Currently RadScriptManager does not combine scripts, identified by a path. The control combines only scripts, which are added as embedded resources to an external assembly. This functionality is similar to RadStyleSheetManager's external stylesheet combination, described in the RadStyleSheetManager documentation article.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top