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

RadScriptManager not combining scripts

2 Answers 132 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Nils C.
Top achievements
Rank 1
Nils C. asked on 23 Mar 2012, 06:03 PM
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 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 27 Mar 2012, 01:45 PM
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.
0
Frankie
Top achievements
Rank 2
answered on 29 May 2012, 01:32 PM
May be you can try removing Telerik library from reference folder and re-add them. It works for me.
Tags
ScriptManager and StyleSheetManager
Asked by
Nils C.
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Frankie
Top achievements
Rank 2
Share this question
or