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

[Solved] Telerik is not defined in IE6 (not in IE7)

5 Answers 167 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cloud
Top achievements
Rank 1
Cloud asked on 30 Oct 2008, 01:33 AM
Hi all,

  I am using Telerik ASPNET AJAX 2008 Q2. The project works fine in IE7, but encounter Telerik is not defined in IE6. Anyone can help? Thx.

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 30 Oct 2008, 07:52 AM
Hello Cloud,

Please examine the following links:
Error: "'Telerik' is undefined" when using OutputCache directive
Web Resources demystified: Part 3 (Troubleshooting)
General Troubleshooting

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ed
Top achievements
Rank 1
answered on 07 Jan 2010, 04:32 PM
Hi there,

I am having a similar problem using Firefox 3.5.  I have a custom ASCX control that uses the RadTreeView with the OutputCache directive as follows:

<%@ Control Language="c#" AutoEventWireup="true" Inherits="Web.Controls.SeriesMenu" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" CodeFile="SeriesMenu.ascx.cs" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ OutputCache Duration="3600" Shared="true" VaryByParam="*" %> 
 
<asp:Label id="lblMessage" runat="server" CssClass="copyred" /> 
 
<h3><asp:Label id="lblSeriesName" runat="server" /></h3
 
<telerik:RadTreeView ID="rtvAll" runat="server" ForeColor="#003366" style="white-space: normal;" OnNodeExpand="AddSurveyDetails"
</telerik:RadTreeView> 

After the first time the page containing this control is loaded, the error "Telerik is not defined" is shown (in Firebug) and the tree is not rendered correctly.  I tried to read the first link below (http://www.telerik.com/support/kb/article/b454K-mgt-b454T-cgt-b454c-cgt.aspx) but it appears to be dead ...

All answers gratefully received,

Ed Graham
0
Lini
Telerik team
answered on 08 Jan 2010, 07:42 AM
Hello Ed,

Here is the updated link to the KB - http://www.telerik.com/support/kb/aspnet-ajax/general/error-telerik-is-undefined-when-using-outputcache-directive.aspx

In some cases it is possible to use OutputCache directives with our controls. See the following KB as well - http://www.telerik.com/support/kb/aspnet-ajax/general/how-to-use-telerik-web-ui-components-in-a-user-control-with-outputcache.aspx

If the above article does not help and you still want to use caching, then simply try setting the RegisterWithScriptManager property of the RadTreeView to False. This will tell the control to be separate from the script manager (which in your case is in a different part of the page and is not cached).

Greetings,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ed
Top achievements
Rank 1
answered on 08 Jan 2010, 10:49 AM
Hi Lini,

Thanks for the updated link.  However, all the article says is that Telerik controls are not designed to work with ASP.NET output caching.  Not only is this unhelpful, it is also now out of date!

I tried the link to the second article but it looked very complicated, so I quickly tried your third suggestion of setting the RegisterWithScriptManager property of the RadTreeView to False, and ... it worked a treat!  Thanks very much indeed; that has saved me a lot of time and trouble.

Cheers,

Ed
0
Rumen
Telerik team
answered on 13 Jan 2010, 01:14 PM
Hi Ed,

I am glad that the problem was resolved.

I updated the http://www.telerik.com/support/kb/aspnet-ajax/general/error-telerik-is-undefined-when-using-outputcache-directive.aspx kb article and added information about the RegisterWithScriptManager property in it.

Sincerely,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Cloud
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Ed
Top achievements
Rank 1
Lini
Telerik team
Rumen
Telerik team
Share this question
or