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

Error JScript: theForm is not defined

4 Answers 79 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Aurelio Righetti
Top achievements
Rank 1
Aurelio Righetti asked on 25 Oct 2012, 07:25 PM
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

4 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 Oct 2012, 01:04 PM
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.
0
Aurelio Righetti
Top achievements
Rank 1
answered on 30 Oct 2012, 01:29 PM
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
0
Plamen
Telerik team
answered on 30 Oct 2012, 02:29 PM
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.
0
Aurelio Righetti
Top achievements
Rank 1
answered on 30 Oct 2012, 05:16 PM
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
Tags
Scheduler
Asked by
Aurelio Righetti
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Aurelio Righetti
Top achievements
Rank 1
Share this question
or