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

Telerik.Web.UI.RadScheduler is null or not an object

3 Answers 112 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 08 Feb 2011, 08:33 PM
First off, I'm a newb to the Telerik ASP.NET controls and am currently eval'ing the latest download.  I've been through all of the forums and can't find an answer to this one.

I'm getting a "Microsoft JScript runtime error: Telerik.Web.UI.RadScheduler is null or not an object' error.  I'm basing my code from what I found out on the "Scheduler / Binding to Generic List" demo.  I'm using Master pages and am trying to simply bind the RadScheduler to a custom appointment class which I have created.  I'm wanting to have read-only calendar representation of a single day's activities on a webform.  Pretty basic requirement for now <grin>... My code below:

Markup:
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadScheduler ID="RadScheduler1" runat="server" EnableEmbeddedSkins="false" 
        Skin="MPower" ReadOnly="true" DataKeyField="AppointmentID" DataSubjectField="Subject" 
        DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" 
        DataRecurrenceParentKeyField="RecurrenceParentID" width="750px" 
        DayStartTime="08:00:00" DayEndTime="20:00:00" TimeZoneOffset="03:00:00"  >
    </telerik:RadScheduler>
</asp:Content>

CodeBehind (located in the Page_Load):
AppointmentCollection appointments = new AppointmentCollection();
this.RadScheduler1.DataSource = appointments.GetAppointmentsByDate("08/19/2011");

As well, if it proves helpful...the offending JS line of code is below.  I can shift-F9 and see that my scheduler control "ctl00_ContentPlaceholder1_RadScheduler1" is populated w/all of the correct data from my binding code...it's just that the "Telerik.Web.UI.RadScheduler" is null
Telerik.Web.UI.RadScheduler._preInitialize("ctl00_ContentPlaceHolder1_RadScheduler1",0,0,1,false);

Thanks in advance for any advice!
Jim

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 09 Feb 2011, 08:05 AM
Hi Jim,

Could you please send me a sample project so I can inspect it and help you?
Thank you!

All the best,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Jim
Top achievements
Rank 1
answered on 10 Feb 2011, 04:05 PM
Hi Veronica ~ Thanks for the reply.  I just learned this isn't happening on my main development PC (just on my laptop).  I will continue to look into what's different btw the two (configuration-wise).  They are both Window7 64-bit machines...any ideas?

Again, Thanks in advance,
Jim
0
Jim
Top achievements
Rank 1
answered on 10 Feb 2011, 06:59 PM
Didn't have ServicePack1 on my laptop's VS2008 installation.  That was it!  Hope this helps someone out there!

Best,
Jim
Tags
Scheduler
Asked by
Jim
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Jim
Top achievements
Rank 1
Share this question
or