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
Hi Jimi,
i have the same issue, do you got the fix ??
any help ?
Please check the following resources on the matter:
- Error message "'Telerik' is undefined" when running a website on IIS 7+ Integrated mode
- Uncaught ReferenceError: Telerik is not defined.
Best regards,
Progress Telerik
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
Our thoughts here at Progress are with those affected by the outbreak.
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).
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
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
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/.