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

Uncaught ReferenceError: $telerik is not defined

9 Answers 2504 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jimi
Top achievements
Rank 1
Jimi asked on 24 Oct 2017, 12:28 PM

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

 

9 Answers, 1 is accepted

Sort by
0
Jimi
Top achievements
Rank 1
answered on 09 Nov 2017, 08:17 AM
Any help...?
0
Mohammad
Top achievements
Rank 1
answered on 26 Nov 2018, 03:05 PM

Hi Jimi,

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

any help ?

 

 

 

0
Rumen
Telerik team
answered on 26 Nov 2018, 03:28 PM
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.
0
Rumen
Telerik team
answered on 27 Mar 2020, 09:23 AM

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.
0
EZECHIAS
Top achievements
Rank 1
answered on 14 Oct 2020, 03:30 AM
Removing the target framework from httpRuntime section of your web config will fix that issue
0
Rumen
Telerik team
answered on 14 Oct 2020, 06:09 AM

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).

0
Markus
Top achievements
Rank 1
answered on 29 Oct 2020, 08:02 AM

 

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 

0
Markus
Top achievements
Rank 1
answered on 29 Oct 2020, 09:22 AM

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 

0
Rumen
Telerik team
answered on 29 Oct 2020, 10:36 AM

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/.

Rumen
Telerik team
commented on 03 Aug 2022, 02:31 PM

You can also find more information and scenarios for the error at https://docs.telerik.com/devtools/aspnet-ajax/knowledge-base/common-error-telerik-is-undefined.
Tags
General Discussions
Asked by
Jimi
Top achievements
Rank 1
Answers by
Jimi
Top achievements
Rank 1
Mohammad
Top achievements
Rank 1
Rumen
Telerik team
EZECHIAS
Top achievements
Rank 1
Markus
Top achievements
Rank 1
Share this question
or