'Telerik' is undefined

47 posts, 0 answers
  1. Maxime
    Maxime avatar
    30 posts
    Member since:
    May 2006

    Posted 19 Oct 2007 Link to this post

    Hi,

    I want to evaluate the radScheduler component. I have dowloanded the latest version of Prometheus.

    I only put a on a radScheduler component on a form with a datasource but at exection I obtain the following popup message :

    'Telerik' is undefined

    The code generated is  :

    ...

    </
    div><div class="rsFooter">

    <a class="rsFullTime" href="#">Show 24 hours...</a>

    </div><script type="text/javascript">

    Telerik.Web.UI.RadScheduler.FixHeight("RadScheduler1");

    <


    PS : My global settings for my machine are "French".

    Best regards,

  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 19 Oct 2007 Link to this post

    Hi Sébastien FLEURIET,

    We have encountered such an error before. "Telerik" is undefined indicates that for some reason the JavaScript files which support RadScheduler (and the whole "Prometheus" suite) are not loaded.

    Could you please open a formal support ticket and attach your page there? It will help us trace the problem and provide a solution

    Greetings,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 19 Oct 2007 Link to this post

    Hi Sébastien FLEURIET,

    We have encountered such an error before. "Telerik" is undefined indicates that for some reason the JavaScript files which support RadScheduler (and the whole "Prometheus" suite) are not loaded.

    Could you please open a formal support ticket and attach your page there? It will help us trace the problem and provide a solution

    Greetings,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. Maxime
    Maxime avatar
    30 posts
    Member since:
    May 2006

    Posted 22 Oct 2007 Link to this post

    Hi,

    Problem solved.

    On another machine it's ok. The problem seems to come from my Visual Studio.

    Best regards,
  5. Sheepdog
    Sheepdog avatar
    72 posts
    Member since:
    Nov 2005

    Posted 05 Nov 2007 Link to this post

    I to am getting the same error.
    'Telerik" is Undefined

    I have a basic page, within a master page, a web control and the rad scheduler.

    attached is the form page

    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="Untitled Page" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

    Namespace="System.Web.UI" TagPrefix="asp" %>

    <%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>

    <%@ Register Src="BulletinBanner.ascx" TagName="BulletinBanner" TagPrefix="uc1" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">

    </asp:ScriptManager>

    <uc1:BulletinBanner ID="HomeBulletinBanner" runat="server" />

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

    <AjaxSettings>

    <telerik:AjaxSetting AjaxControlID="rsDefault">

    <UpdatedControls>

    <telerik:AjaxUpdatedControl ControlID="rsDefault" LoadingPanelID="RadAjaxLoadingPanel1" />

    </UpdatedControls>

    </telerik:AjaxSetting>

    </AjaxSettings>

    </telerik:RadAjaxManager>

    <br />

    &nbsp;<telerik:RadScheduler ID="rsDefault" runat="server" AllowDelete="False" AllowEdit="False">

    </telerik:RadScheduler>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

    Width="75px">

    <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/RadControls/Ajax/Skins/Default/Loading.gif" />

    </telerik:RadAjaxLoadingPanel>

    </asp:Content>


    This is the codebehind:

    Option Explicit On

    Option Strict On

    Imports System.Data

    Partial Class _Default

    Inherits SecurityClass

    Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit

    PageSecurityLevel = 1

    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    HomeBulletinBanner.Pagename = PageName

    If Not Page.IsPostBack Then

    getCalendarData()

    End If

    End Sub

    Private Sub getCalendarData()

    Dim myBal As New BAL

    Dim myDs As DataSet

    Dim dCurMonthStartDate As Date

    Dim dCurMonthEndDate As Date

    Try

    dCurMonthStartDate = Date.Parse(Now.Month.ToString & " " & "01, " & Now.Year.ToString)

    dCurMonthEndDate = GetMonthEndDate(Now.Month, Now.Year)

    myDs = myBal.GetPromos(dCurMonthStartDate, dCurMonthEndDate)

    rsDefault.DataSource = myDs

    rsDefault.DataKeyField = "EventID"

    rsDefault.DataStartField = "StartDate"

    rsDefault.DataSubjectField = "Title"

    rsDefault.DataEndField = "EndDate"

    rsDefault.DataBind()

    Catch ex As Exception

    Throw

    End Try

     

     

    End Sub

     

    End Class

  6. Dave Friedel
    Dave Friedel avatar
    20 posts
    Member since:
    Mar 2004

    Posted 06 Nov 2007 Link to this post

    Same error here.  Not sure why though.  I installed the AJAX from Microsoft and your Prometheus libraries.  Is there any way to manually place the javascript in the right location?

    D.
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 07 Nov 2007 Link to this post

    Hello Dave,

    There is a help topic for RadMenu which treats the same issue. Please, consider case #2 from this article as well as the "See also" links at the bottom.

    I hope this helps.


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Sheepdog
    Sheepdog avatar
    72 posts
    Member since:
    Nov 2005

    Posted 07 Nov 2007 Link to this post

    Dave,

    I fixed my problem by adding code to my web.config file. I looked into the examples that Telerik provides for Prometheus. I ran the solution, and it worked. So that told me that it was not a problem with my box.

    I looked at the web.config file in the examples, and noticed a lot of code that was not in mine. So bascialy I copied that parts mine did not contain that applied only to the script manager, and the scheduler. I obviously didnt copy over any appsettings or connection strings. And that seemed to work for me....

    Here is what my web.config file looks like now...

    <?xml version="1.0"?>

    <!--

    Note: As an alternative to hand editing this file you can use the

    web admin tool to configure settings for your application. Use

    the Website->Asp.Net Configuration option in Visual Studio.

    A full list of settings and comments can be found in

    machine.config.comments usually located in

    \Windows\Microsoft.Net\Framework\v2.x\Config

     

    -->

    <configuration>

    <appSettings>

    <add key="M360WS.M360WebService" value="http://localhost/Marketing360/Webservice/M360WebService.asmx"/>

    <add key="webdev.AppAuth" value="http://webdev/WS_AppAuth/AppAuth.asmx"/>

    </appSettings>

    <connectionStrings/>

    <system.web>

    <!--

    Set compilation debug="true" to insert debugging

    symbols into the compiled page. Because this

    affects performance, set this value to true only

    during development.

    Visual Basic options:

    Set strict="true" to disallow all data type conversions

    where data loss can occur.

    Set explicit="true" to force declaration of all variables.

    -->

    <compilation debug="true" strict="false" explicit="true">

    <assemblies>

    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

    </assemblies>

    </compilation>

    <!--BELOW This was copied from the example code-->

    <httpHandlers>

    <remove verb="*" path="*.asmx"/>

    <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <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 verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2007.2.1010.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>

    <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2007.2.1010.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>

    <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2007.2.1010.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

    </httpHandlers>

    <httpModules>

    <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </httpModules>

    <!--ABOVE This was copied from the example code-->

    <pages>

    <!--BELOW This was copied from the example code-->

    <controls>

    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </controls>

    <!--ABOVE This was copied from the example code-->

    <namespaces>

    <clear/>

    <add namespace="System"/>

    <add namespace="System.Collections"/>

    <add namespace="System.Collections.Specialized"/>

    <add namespace="System.Configuration"/>

    <add namespace="System.Text"/>

    <add namespace="System.Text.RegularExpressions"/>

    <add namespace="System.Web"/>

    <add namespace="System.Web.Caching"/>

    <add namespace="System.Web.SessionState"/>

    <add namespace="System.Web.Security"/>

    <add namespace="System.Web.Profile"/>

    <add namespace="System.Web.UI"/>

    <add namespace="System.Web.UI.WebControls"/>

    <add namespace="System.Web.UI.WebControls.WebParts"/>

    <add namespace="System.Web.UI.HtmlControls"/>

    </namespaces>

    </pages>

    <!--

     

    The <authentication> section enables configuration

    of the security authentication mode used by

    ASP.NET to identify an incoming user.

    -->

    <authentication mode="Windows"/>

    <!--

     

    The <customErrors> section enables configuration

    of what to do if/when an unhandled error occurs

    during the execution of a request. Specifically,

    it enables developers to configure html error pages

    to be displayed in place of a error stack trace.

    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

    <error statusCode="403" redirect="NoAccess.htm" />

    <error statusCode="404" redirect="FileNotFound.htm" />

    </customErrors>

    -->

    </system.web>

    <!--BELOW This was copied from the example code-->

    <system.webServer>

    <validation validateIntegratedModeConfiguration="false"/>

    <modules>

    <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </modules>

    <handlers>

    <remove name="WebServiceHandlerFactory-Integrated"/>

    <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </handlers>

    </system.webServer>

    <!--ABOVE This was copied from the example code-->

    </configuration>

    HOPE THIS HELPS
    Sheepdog out....

  9. Dave Friedel
    Dave Friedel avatar
    20 posts
    Member since:
    Mar 2004

    Posted 21 Nov 2007 Link to this post

    wow... here is another one for the community...

    I figured it out why my case was failing..  If we specify a 

    ScriptManager.ScriptPath = <some path>

    telerik's location gets overrided and it fails to find the scripts.

    Gotta luv it :)

    Cheers.
    D.

  10. Oliver
    Oliver avatar
    14 posts
    Member since:
    Nov 2007

    Posted 09 Dec 2007 Link to this post

    Hey,

    I got this error, but resolved it by changing the LoadScriptsBeforeUI attribute in ScriptManager.  It was false, but changing it to true prevented this error.

    This is a shame as I did really want to load the majority of the UI before the scripts.  Pretty sure this is better for SEO benefits too.



    LoadScriptsBeforeUI="true" />
  11. David
    David avatar
    38 posts
    Member since:
    Oct 2007

    Posted 14 Dec 2007 Link to this post

    I had this frustrating error and what Sheepdog suggested up there ^^^ totally fixed it for me (about modifying the web.config file to mimic what's in the example on the telerik site)  I copied and pasted what he said to into my web.config file and voila!  It works great.  Thanks bro!
  12. Dave Friedel
    Dave Friedel avatar
    20 posts
    Member since:
    Mar 2004

    Posted 14 Dec 2007 Link to this post

    It popped up again for me.  I am unsure how to reproduce it (those dreaded small samples) but it only happens with Telerik and Microsoft's AJAX.  I moved to a different scheduler with Microsoft's AJAX and it works fine.  I made all the changes above but will revisit Prometheus later.

    D.
  13. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 15 Dec 2007 Link to this post

    Hi Dave,

    The problem could be caused by the web.config settings. You need to include the settings for a new ASP.NET Ajax Web Site. Have you checked this?


    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  14. Dave Friedel
    Dave Friedel avatar
    20 posts
    Member since:
    Mar 2004

    Posted 15 Dec 2007 Link to this post

    Yes.  I double checked.  The scheduler will display but all the links are nulled.

    D.
  15. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 26 Dec 2007 Link to this post

    Hi

    I am getting the same problem.

    'Telerik' is undefined.

    This deos not happen in my VS 2008 development environment. However it does occur in my "Test" environment.

    I have checked and re-checked my web.config and it contains all the necessary sections for an Ajax enabled website.

    Any ideas ?

    Kind Regards

    David
  16. Rainz
    Rainz avatar
    25 posts
    Member since:
    Nov 2005

    Posted 27 Dec 2007 Link to this post

    Same problem in VS 2008 / Vista
  17. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 27 Dec 2007 Link to this post

    Hi Guys,

    Did anyone manage to isolate the problem in a simple web site? This would of great help to find what is causing this error.

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  18. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 27 Dec 2007 Link to this post

    Hi

    It seems quite difficult to isolatre in a test project however you can see it happening at http://daresoft.no-ip.co.uk/McDiamonds

    Please note that it is running from my loft so can be quite slow, but it does get there in the end.

    Perhaps you can see what is happening from the "View Source".

    Kind Regards

    David
  19. Rainz
    Rainz avatar
    25 posts
    Member since:
    Nov 2005

    Posted 31 Dec 2007 Link to this post

    Here's the problem on my dev machine (view with IE7):
    http://dev.netmasons.com/teleriktesting

    If anyone has solved this bug please let me know.

    Thanks

  20. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 03 Jan 2008 Link to this post

    Hello Rainz,

    If you are using RadScriptManager and you receive the "Telerik is undefined" error the http handler is probably not registered in your web.config. Please check for the presence of:

    <httpHandlers> 
       <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
    </httpHandlers> 

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  21. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 03 Jan 2008 Link to this post

    Hi

    I am using hte RadScriptManager, and this line is inserted into my web.config file.

    Any other ideas ?

    Kind ERgards

    David
  22. Dave Friedel
    Dave Friedel avatar
    20 posts
    Member since:
    Mar 2004

    Posted 03 Jan 2008 Link to this post

    I have one... I build my pages dynamically in the Page_Init routine - which loads the modules dynamically.  I can only guess that the error occurs because something does not get written at the correct time during the generation of the page but have checked and all the html seems in order.

    I have come to a dead-end trying to figure this out and it is the only thing I can come up with.  I also create the ScriptManager on the page dynamically during the Page_Init routine.  I have used other vendors controls supporting Microsoft Ajax and they work with my method - but prefer Telerik's codebase - actually I wish I could just use Telerik's Ajax - but prometheus seems to be the roadmap.

    hope this helps narrow it down some. 
  23. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 03 Jan 2008 Link to this post

    Hi

    This may or may not help any of you with the same problem.

    My FIX (hooray) for this problem was to include the language="javascript" property in a <script> tag in the <head> tag block.

    This has fixed two of my websites so I am now a very happy man and might just go down the pub.

    Kind Regards

    David
  24. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 03 Jan 2008 Link to this post

    Hi

    I might have been a little bit premature in my celebrations. I didn't go to the pub when my websites seemsed to be working, but stayed and played around with them. It seems that the problem has returned.

    I have two projects that are exhibiting this error.

    1. A .NET 2.0 VS 2005 website
    2. A .NET 3.5 VS 2008 project

    I also have a third project which does not exhibit this phenomena.

    So ... What next to try ?

    Kind REgards

    David
  25. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 04 Jan 2008 Link to this post

    Hello David,

    After inspecting your site I found out that requesting http://84.65.125.118:8083/McDiamonds/Telerik.Web.UI.WebResource.axd returns 404 for some reason.

    This URL is rendered by RadScriptManager and represents the http handler serving JavaScript resources. The 404 error is effectively causing the "Telerik is undefined" error because no telerik scripts have been loaded. It also appears that some other HTTP handler ThumbHandler.ashx also returns 404. I have attached a screenshot from FireBug. It seems to me that http handlers do not work for some reason despite they are registered in the web.config. Maybe it's because you are web application is running in Integrated mode (IIS7).
    You can try inserting the http handler registration inside <system.webServer> instead of <system.web>:

    <system.webServer> 
        <httpHandlers>  
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />  
        </httpHandlers>  
    </system.webServer> 


    I hope this helps,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  26. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 04 Jan 2008 Link to this post

    Hi Guys

    This has helped enourmously.

    In IIS7 against the Website in question you can add Handlers. I added the two offending handlers and off the website went without the offending message.

    This is great.

    Thanks

    David
  27. Michael
    Michael avatar
    3 posts
    Member since:
    Jan 2008

    Posted 12 Jan 2008 Link to this post

    Hello,
    I have been playing with the new Prometheus code and I have the "Telerik is undefined" error in my project as well.  I have tried all of the solutions suggested in this post and I don't have an OutputCache page directive anywhere in my site.  Are you still working on resolutions for this problem?  I would love to start using Prometheus but am waiting to do so until I can resolve this problem.  Thanks for your help!
    Michael
  28. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Jan 2008 Link to this post

    Hello Michael,

    Could you provide more information such as specifying your web server, operating system, exact version of Telerik.Web.UI and which controls you use? A live url demonstrating the problem would be very helpful as well.  



    Best wishes,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  29. hacheyj
    hacheyj avatar
    6 posts
    Member since:
    Nov 2006

    Posted 03 Mar 2008 Link to this post

    I ran into this problem as well - ends up it was because authentication on the rest of the site - placing the following in my web config fixed it up:

    <location path="Telerik.Web.UI.WebResource.axd">  
        <system.web> 
          <authorization> 
            <allow users="*"/>  
          </authorization> 
        </system.web>    
      </location> 

  30. A
    A avatar
    20 posts
    Member since:
    Mar 2008

    Posted 26 Mar 2008 Link to this post

    Ok, here is the solution for VISTA/WindowsServer2008, IIS7, .NET 3.5

    Add the telerik WebResource handler below to the system.WebServer section of your web.config

    <system.webServer>

    <

    handlers>

    <

    add name="Telerik.Web.UI.WebResource.axd_" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" />

    </system.webServer>

    </

    handlers>

Back to Top