"$telerik is not defined" javascript errors

2 posts, 0 answers
  1. Christian
    Christian avatar
    16 posts
    Member since:
    Nov 2008

    Posted 30 Apr 2014 Link to this post

    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,

  2. Marin Bratanov
    Marin Bratanov avatar
    4655 posts

    Posted 02 May 2014 Link to this post

    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.


    Marin Bratanov

    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.

Back to Top