Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T.

The following javascript error occurs when trying to use the Telerik controls and you haven't updated your ASP.NET (2.0) web.config file correctly.

Error: 'Telerik' is undefined

To fix make sure the following lines are within the <system.web> section of your web.config file:

<httpHandlers>
  <
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
  <
add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.1.515.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
  <
add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.515.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
</
httpHandlers>

In my case I was missing the ScriptResource.axd line.   Also, you only need the ChartImage.axd line if you're using the chart control.

HTH
Tim

Posted on Wednesday, July 9, 2008 9:03 AM C# .NET , ASP.NET , ASP.NET AJAX | Back to top


Comments on this post: Javascript error using Telerik controls with ASP.Net: Error: 'Telerik' is undefined

# re: Javascript error using Telerik controls with ASP.Net: Error: 'Telerik' is undefined
Requesting Gravatar...
We have had a difficult time getting our Telerik controls to work. Adding these httpHandlers solved the problem and now our development site is now operational!

Thanks for posting this and for the work you did to find the answers. You've been a great help.

You have earned a bookmark in my browser! :)

Thanks!

Bill
Left by Bill Parrott on Jul 17, 2008 7:53 AM

# re: Javascript error using Telerik controls with ASP.Net: Error: 'Telerik' is undefined
Requesting Gravatar...
Thankyou thankyou thankyou!
Left by guido on Jul 18, 2008 10:10 AM

# re: Javascript error using Telerik controls with ASP.Net: Error: 'Telerik' is undefined
Requesting Gravatar...
i used the trail versions of the dll and they i used the puchased version of telerik dll .javascript error (telerik is undefiend) can u help me in this regard
Left by gsreedy on Aug 22, 2008 1:18 AM

# re: Javascript error using Telerik controls with ASP.Net: Error: 'Telerik' is undefined
Requesting Gravatar...
This worked.

Thanks!
Left by Lance on Nov 26, 2008 5:23 AM

# re: Javascript error using Telerik controls with ASP.Net: Error: 'Telerik' is undefined
Requesting Gravatar...
Thank you so MUCH!!!!
Left by sree on Nov 19, 2009 11:22 AM

# re: Javascript error using Telerik controls with ASP.Net: Error: 'Telerik' is undefined
Requesting Gravatar...
If uses IIS 7 check the "manage pipeline mode" if is integrated

Verify the too the tags

<system.webServer>
<handlers>
.....
</handlers></system.webServer>
Left by Juan V. on Jul 21, 2011 8:57 PM

Your comment:
 (will show your gravatar)


Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net