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

"$telerik is not defined" javascript errors

1 Answer 1077 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 30 Apr 2014, 08:27 AM
Hello, 
After updating telerik framework for ASP.NET AJAX Q1 to version 2014.1.403.40, my application just throwing a lot of "$telerik is not defined".
One think i want to mention is that i use (like in previous versions) <add key="Telerik.EnableEmbeddedScripts" value="false"/> and i compressed all js files in one only named Telerik.js. 
WebConfig attached, ErrorsImage attached, Aspx files with RadScriptManager and ScriptManager attached.

Hope you will point me in the right direction,
Thanks!



























1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 May 2014, 02:38 PM

Hi Christian,

Can you confirm the Core.js file is included in the beginning of the script you have combined and that it is updated with the latest version from our end?

What you can try is to reference it from the assembly to makes sure it is up to date (because all control rely on it) and add it as a script reference at the beginning of the Scrips section:
 <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
This next one is the jQuery we bring in case core.js does not suffice by itself.
 <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />

Also, make sure that your browser is not using a cached version, because static files tend to be cached. You can clean the browser cache and the ASP cache as well.

I would also like to point out that when EnableScriptCombine property of the RadScriptManager is set to true, all the script files registered on the page from our controls will be combined into a single webresource request. Its URL will be the same for the given script combination until the app pool is recycled, which allows for good caching. The scripts CDN is also a good option if you want to have the needed scripts cached. Taking either of these approaches will reduce the work you have to do to combine scripts and is also likely to yield a smaller request size because irrelevant scripts will not be included.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Ajax
Asked by
Christian
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or