Uncaught ReferenceError: $telerik is not defined

10 posts, 0 answers
  1. Jimi
    Jimi avatar
    2 posts
    Member since:
    Nov 2017

    Posted 24 Oct 2017 Link to this post

    Hi,

     

    I got the Uncaught ReferenceError: $telerik is not defined error. I saw many threads, but didn't find it fit my problem.

    Details:

    • So far, the issue is not always reproduce. But when it does, it's only reproduce on Windows Server 2016 only, which runs IIS 10
    • It's look like the file that declares on window.$telerik is loaded after the file that assign the jQuery into Telerik $telerik.$ = jQuery.noConflict(true); (please see attached print screens)
    • There's couple of Telerik controls in the page, such RadUpload and RadButton

    Pleas assist,

     

    Shimiz

     

  2. Jimi
    Jimi avatar
    2 posts
    Member since:
    Nov 2017

    Posted 09 Nov 2017 in reply to Jimi Link to this post

    Any help...?
  3. Mohammad
    Mohammad avatar
    1 posts
    Member since:
    Oct 2018

    Posted 26 Nov 2018 in reply to Jimi Link to this post

    Hi Jimi,

    i have the same issue, do you got the fix ??

    any help ?

     

     

     

  4. Rumen
    Admin
    Rumen avatar
    14419 posts

    Posted 26 Nov 2018 Link to this post

    Hello,

    Please check the following resources on the matter:


    Best regards,

    Rumen
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. Rumen
    Admin
    Rumen avatar
    14419 posts

    Posted 27 Mar 2020 Link to this post

    Hi again,

    A customer who experienced this issue reported that the following web.config section causes the error in his app:

    <httpRuntime requestLengthDiskThreshold="512" useFullyQualifiedRedirectUrl="true" executionTimeout="110" requestValidationMode="2.0" targetFramework="4.5" maxRequestLength="102400" />

    The targetFramework="4.5 attribute was causing the issue. Once removed - everything started to work as expected.

     

    Regards,
    Rumen
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  6. EZECHIAS
    EZECHIAS avatar
    9 posts
    Member since:
    May 2013

    Posted 13 Oct 2020 in reply to Rumen Link to this post

    Removing the target framework from httpRuntime section of your web config will fix that issue
  7. Rumen
    Admin
    Rumen avatar
    14419 posts

    Posted 14 Oct 2020 Link to this post

    Hi Ezechias,

    Thank you for confirming the solution! Glad that it works for you!

     

    Regards,
    Rumen
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

  8. Markus
    Markus avatar
    4 posts
    Member since:
    Jan 2004

    Posted 29 Oct 2020 in reply to Rumen Link to this post

     

    Hi Rumen, 

     

    I can not remove httpRuntime targetFramework in my web application. Could you please make sure your software works if a current targetFramework is set? 

     

    Thanks, 

     

    Markus 

  9. Markus
    Markus avatar
    4 posts
    Member since:
    Jan 2004

    Posted 29 Oct 2020 in reply to Markus Link to this post

    I found out that a standard asp.net RegularExpressionValidator caused this error. If you set targetFramework to a current version UnobtrusiveValidationMode gets enabled. This causes the conflict. Temporary workaround: Set UnobtrusiveValidationMode to none in App Settings of your web.config file:

    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />

    More Information: https://stackoverflow.com/questions/12452109/asp-net-2012-unobtrusive-validation-with-jquery 

  10. Rumen
    Admin
    Rumen avatar
    14419 posts

    Posted 29 Oct 2020 Link to this post

    Hi Markus,

    Indeed, this is the recommended way to remedy the issue.

    The problem is explained in the Telerik AJAX documentation. Please refer to jQuery Troubleshooting, e.g.

    You can avoid jQuery and validation problems with a single line in the web.config that will disable the Unobtrusive Validation.

    **web.config**
    
        <appSettings>
            <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>

    Best Regards,
    Rumen
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top