RadScriptManager not combining scripts

3 posts, 0 answers
  1. Nils C.
    Nils C. avatar
    41 posts
    Member since:
    Oct 2009

    Posted 23 Mar 2012 Link to this post

    Hi!
    we have multiple radcontrols on on our pages and the list of .js files requested is accordingly long. As we have a RadScriptManager on every page, I'd expect there to be only ONE combined request - but that's not the case. Our pages still request between 10 - 20 individual scripts on every load (such as RadButton.js). We load many of the controls dynamically - can that be an issue? Am I missing something here? Is any additional configuration required?

    This is part of our <handlers> section (running IIS7 in integrated mode):
    <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

    This is our RadSrciptManager:
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true">
    </telerik:RadScriptManager>

    I tried adding scripts individually to the RadScriptManager like so:
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Grid.RadGrid.js" />
    </Scripts>

    which results in this error:

    The Assembly "Telerik.Web.UI, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" does not contain a Webressource with the name "Telerik.Web.UI.Grid.RadGrid.js".



    Thanks for any help!
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 27 Mar 2012 Link to this post

    Hi,

    In order to identify why the scripts are not being combined, please open a support ticket and provide your web config file along with a fiddler log so we could inspect them. Also please verify that the CDN is disabled.

    Whether you are adding your controls dynamically or not shouldn't make any difference.

    All the best,
    Dimitar Terziev
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Frankie
    Frankie avatar
    9 posts
    Member since:
    Jan 2008

    Posted 29 May 2012 Link to this post

    May be you can try removing Telerik library from reference folder and re-add them. It works for me.
Back to Top