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:
CodeBehind (located in the Page_Load):
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
Thanks in advance for any advice!
Jim
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