Error JScript: theForm is not defined

5 posts, 0 answers
  1. Aurelio Righetti
    Aurelio Righetti avatar
    51 posts
    Member since:
    May 2009

    Posted 25 Oct 2012 Link to this post

    Hi...i need to use the Radscheduler with other component in the same page, in this case Ext.Net component, but then insert the RadScheduler in the page and show the page, i retrive this error JScrip:

    Unhandled exception at line 240, column 5 in http://localhost:8497/WebResource.axd?d=7SNUFUE229WI3L9Dj-W-PAIm_W9gkIOUcn1bePKMGP3OeC75SRjPFoYYmjCeF4psB8g09B5xCr100kKxX9laHQ-2GhFxzDtJFZbuxerix4Q1&t=634773918900000000

    0x800a1391 - Errore di run-time di Microsoft JScript: 'theForm' non è definito

    Other RadComponent work Ok..

    There is my simpli code:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="AnalisiProcedimenti.WebForm3" %>
     
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">     
            
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
             <ext:ResourceManager ID="ResourceManager1" runat="server" Namespace="" DirectMethodNamespace="Ext.net.DirectMethods">
                </ext:ResourceManager>
          <div>
              <telerik:RadTextBox ID="RadTextBox1" runat="server"></telerik:RadTextBox>
              <telerik:RadCalendar ID="RadCalendar1" runat="server"></telerik:RadCalendar>
              <telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="Description" DataEndField="End"
                  DataKeyField="ID" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"
                  DataReminderField="Reminder" DataSourceID="SqlDataSource1" DataStartField="Start" DataSubjectField="Subject"
                  DisplayDeleteConfirmation="False" EnableDescriptionField="True" ReadOnly="True">
                  <Reminders Enabled="True" />
              </telerik:RadScheduler>      
             
          </div>
      <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DbAnaProConnectionString %>" SelectCommand="SELECT * FROM [PROCAL]"></asp:SqlDataSource>
        </form>
    </body>
    </html>
    If leave the RadScheduler the error not appear.
    The RadScheduler is show ok in the page , but the open the page i retrive the error.

    Thanks
    Aurelio
  2. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 30 Oct 2012 Link to this post

    Hello Aurelio, 

     
    It seems that there is some kind of conflict in the javascript when the 'ResourceManager" is used together with our controls. That is why we don't recommend using RadControls with other script controls on the same page because some unusual errors may occur. 

    Hope this will explain the issue.

    All the best,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aurelio Righetti
    Aurelio Righetti avatar
    51 posts
    Member since:
    May 2009

    Posted 30 Oct 2012 Link to this post

    Hi ..Plamen
    The problem is that I have to integrate the RadScheduler an existing application at my client. I have not problem with other control Rad, only the scheduler return this error. I have integrate RadBarCode perfectly.

    Thanks
    Aurelio
  5. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 30 Oct 2012 Link to this post

    Hello Aurelio,

     
    I have inspected the issue a bit more and it seems to be a know issue in the "ResourceManager" used that is described here.

    Regards,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Aurelio Righetti
    Aurelio Righetti avatar
    51 posts
    Member since:
    May 2009

    Posted 30 Oct 2012 Link to this post

    Hi..Plamen

    Many thanks and sorry...

    The problem here the ViewState of the other component that with the RadScheduler create the problem..
    Close the Thread

    Thanks
    Aurelio
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017