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

[Solved] Every sample cannot be followed

14 Answers 311 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
tomas
Top achievements
Rank 1
tomas asked on 01 Jun 2009, 08:37 PM

Hello

I have installed Q1 2009 version and there is a problem I cannot solve. 

RadScheduler - RadScheduler1There was an error rendering the control.
Cannot create an object of type 'Telerik.Web.UI.IAppointmentFactory' from its string representation '' for the 'AppointmentFactory' property.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
 
<body> 
    <form id="form1" runat="server">  
    <asp:scriptmanager ID="Scriptmanager1" runat="server"></asp:scriptmanager> 
          
    <div> 
            <telerik:RadScheduler ID="RadScheduler1" runat="server" AppointmentFactory=""   
                DataEndField="End" DataKeyField="ID" DataSourceID="ObjectDataSource1"   
                DataStartField="Start" DataSubjectField="Subject" Height=""   
                HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1">  
            </telerik:RadScheduler> 
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"   
                DeleteMethod="DeleteAppointment" InsertMethod="InsertAppointment"   
                SelectMethod="AllData" TypeName="WebApplication2.AppointmentList"   
                UpdateMethod="UpdateAppointment">  
                <DeleteParameters> 
                    <asp:Parameter Name="ID" Type="String" /> 
                </DeleteParameters> 
                <UpdateParameters> 
                    <asp:Parameter Name="ID" Type="String" /> 
                    <asp:Parameter Name="Subject" Type="String" /> 
                    <asp:Parameter Name="Start" Type="DateTime" /> 
                    <asp:Parameter Name="End" Type="DateTime" /> 
                    <asp:Parameter Name="RecurrenceRule" Type="String" /> 
                    <asp:Parameter Name="RecurrenceParentID" Type="Object" /> 
                    <asp:Parameter Name="RecurrenceState" Type="Object" /> 
                </UpdateParameters> 
                <InsertParameters> 
                    <asp:Parameter Name="Subject" Type="String" /> 
                    <asp:Parameter Name="Start" Type="DateTime" /> 
                    <asp:Parameter Name="End" Type="DateTime" /> 
                    <asp:Parameter Name="RecurrenceRule" Type="String" /> 
                    <asp:Parameter Name="RecurrenceParentID" Type="Object" /> 
                    <asp:Parameter Name="RecurrenceState" Type="Object" /> 
                </InsertParameters> 
            </asp:ObjectDataSource> 
    </div> 
    </form> 
</body> 
</html> 
 
 
I have try to delete all property and quickly got another error:

Error Creating Control - RadScheduler1'End' could not be set on property 'DataEndField'.

I alse have to try assign properties on the fly, but I have got many client scripts errors.

Thank you very much.

Tom

14 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Jun 2009, 01:31 PM
Hello tomas,

That's a glitch with the SP2 versioin of RadScheduler. Utill we fix it, you have to manually delete
AppointmentFactory=""  in the aspx of the page.


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
tomas
Top achievements
Rank 1
answered on 02 Jun 2009, 01:34 PM
Hello Telerik.

No, that is not helping me. I quickly get another error. 

Error Creating Control - RadScheduler1'End' could not be set on property 'DataEndField'.

Thanks Tom
0
Peter
Telerik team
answered on 02 Jun 2009, 02:33 PM

Sometimes once you get design-time errors it is very difficult to get rid of them in Visual studio. I would suggest you try closing visual studio and opening it again. If this does not help, create a new page and before switching to design time, make sure you have deleted AppointmentFactory.


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
tomas
Top achievements
Rank 1
answered on 02 Jun 2009, 02:46 PM
I did this 10 times.

I currently went back to Q3 2008 version and everything is working without problems.

Yesterday I have tried to install new Q1 2009 version and I cannot use scheduler in my old solution nor any other new solution. I did not try another controls.

I cannot recommend this new version to anybody. It simply cannot be used in VS 2008.

:-(

May be my installation is corrupted, because I just doubleclicked RadControls_for_ASP.NET_AJAX_2009_1_527_dev.exe downloaded file.

Thanks Tom
0
Sergey
Top achievements
Rank 2
answered on 03 Jun 2009, 03:13 PM
Hey,

I have a very similar (in fact basically identical problem). With the AppointmentFactory="" in place, I get the [Cannot create an object of type 'Telerik.Web.UI.IAppointmentFactory'] error.

If I manually remove the property, as suggested (and even rebuilding+restarting VS 2008 before the next attempt), I get the following error [System.InvalidOperationException: The control with ID 'RadScheduler1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.].

I was following the getting started document, here (the problem arises at step 20).

Any suggestions?

0
Peter
Telerik team
answered on 03 Jun 2009, 03:22 PM
Hi guys,

We will investigate this problem further and provide a hotfix as soon as possible.

Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Peter
Telerik team
answered on 04 Jun 2009, 03:15 PM

Okay, the problem should be fixed now with the latest build:
http://www.telerik.com/account/latest-internal-builds.aspx

Please, let us know if you still experience problems.

Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
tomas
Top achievements
Rank 1
answered on 04 Jun 2009, 09:12 PM
Yes, there are still problems on the client side. The first error is:

Line: 2810
Error: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value was NaN.

There are no errors with the old version...

Thanks Tom
0
tomas
Top achievements
Rank 1
answered on 04 Jun 2009, 09:23 PM
More information about script error:

I am including scheduler on thy fly with these properties:

<RadScheduler DataStartField="att_50134" DataEndField="att_50135" DataKeyField="n_id" DataSubjectField="n_code_name" CustomAttributeNames="n_nug_typ_id,att_50132_key" HoursPanelTimeFormat="htt" Skin="Office2007" StartInFullTime="true" OverflowBehavior="Expand" SelectedView="MonthView" AllowEdit="false" AllowDelete="false" AllowInsert="false" Width="100%" Height="100%">
  </RadScheduler>


My page has a <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

Sometimes the scheduler window contains only table without days numbers (in moth view). When the mouse cursor is moving over the table, the appointments are visible suddenly. Really strange. I am using IE 8.0.

Thank you.

Tom

0
Sergey
Top achievements
Rank 2
answered on 05 Jun 2009, 07:24 PM
Okay, trying the updated version. Just want to first confirm that I simply copied over the files in the internal build download, over the installed version, as that seemed to be the correct approach.

With this setup, I run into the problem that the control is no longer properly added to the form.

I get:
Error Creating Control - RadScheduler1 
Failed to create designer 'Telerik.Web.UI.RadScheduler, Telerik.Web.UI, Version=2009.1.604.35, Culture=neutralPublicKeyToken=121fae78165ba3d4

Since it seems to be relevant in this case, this is on
VS 2008, Version 9.0.30729.1 SP
With .NET 3.5 SP1

Cheers for the help so far.


0
Veselin Vasilev
Telerik team
answered on 08 Jun 2009, 11:41 AM
Hi Sergey,

To fix the design time problem please add the Telerik.Web.Design assembly version 2009.1.604.35 to the GAC.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sergey
Top achievements
Rank 2
answered on 08 Jun 2009, 02:38 PM
Cheers, gave that a shot, but it didn't appear to fix the issue. So I ended up adding an explicit reference to the dll files to the project to get around it. Just for reference, the project and GAC trees.
http://imgur.com/7zeed.png - Project
http://imgur.com/7MKbr.png - GAC



Still though, when running the program I hit the ScriptManager error:
The control with ID 'RadScheduler1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. 
 
[InvalidOperationException: The control with ID 'RadScheduler1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.] 
   Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control) +304 
   Telerik.Web.UI.RadDataBoundControl.get_ScriptManager() +46 
   Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl() +51 
   Telerik.Web.UI.RadDataBoundControl.ControlPreRender() +38 
   Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +48 
   Telerik.Web.UI.RadScheduler.OnPreRender(EventArgs e) +74 
   System.Web.UI.Control.PreRenderRecursiveInternal() +200 
   System.Web.UI.Control.PreRenderRecursiveInternal() +322 
   System.Web.UI.Control.PreRenderRecursiveInternal() +322 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4836 
 

And RadScheduler:
        <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="End"  
            DataKeyField="ID" DataRecurrenceField="RecurrenceRule"  
            DataRecurrenceParentKeyField="RecurrenceParentID"  
            DataSourceID="ObjectDataSource1" DataStartField="Start"  
            DataSubjectField="Subject" HoursPanelTimeFormat="htt"  
            ValidationGroup="RadScheduler1"
        </telerik:RadScheduler> 

Thanks again on the help.
0
Sergey
Top achievements
Rank 2
answered on 15 Jun 2009, 01:29 PM
Just wondering if there was any update or suggestions? Thanks!
0
Atanas Korchev
Telerik team
answered on 15 Jun 2009, 01:47 PM
Hello Sergey,

Do you have a scriptmanager control in your page? Also please make sure you are using the right version of Telerik.Web.UI.dll in your project. If it is built for ASP.NET 2.0 you should use the 2.0 build of Telerik.Web.UI located in the bin folder of your installation. If you are using ASP.NET 3.5 you need the 3.5 build which can bound in the bin35 folder of the radcontrols installation.

Kind regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
tomas
Top achievements
Rank 1
Answers by
Peter
Telerik team
tomas
Top achievements
Rank 1
Sergey
Top achievements
Rank 2
Veselin Vasilev
Telerik team
Atanas Korchev
Telerik team
Share this question
or