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

4 posts, 0 answers
  1. Jim
    Jim avatar
    5 posts
    Member since:
    Jan 2011

    Posted 08 Feb 2011 Link to this post

    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
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 09 Feb 2011 Link to this post

    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.
  3. Jim
    Jim avatar
    5 posts
    Member since:
    Jan 2011

    Posted 10 Feb 2011 Link to this post

    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
  4. Jim
    Jim avatar
    5 posts
    Member since:
    Jan 2011

    Posted 10 Feb 2011 Link to this post

    Didn't have ServicePack1 on my laptop's VS2008 installation.  That was it!  Hope this helps someone out there!

    Best,
    Jim
Back to Top