I'm trying to use an <AppointmentTemplate> to display data for my scheduler. I have my DataSubjectField="ClassName" and a "ClassName" column defined in the System.Data.DataTable that I'm using as my DataSource.
But the scheduler is ignoring my DataSubjectField setting and giving me this error: DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'ClassName'.
Is there some kind of "UseMyNames='True'" setting that I also need?
Here's my scheduler:
But the scheduler is ignoring my DataSubjectField setting and giving me this error: DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'ClassName'.
Is there some kind of "UseMyNames='True'" setting that I also need?
Here's my scheduler:
| <telerik:RadScheduler ID="schPlanner" |
| AllowEdit="false" |
| AllowInsert="false" |
| DataEndField="End" |
| DataKeyField="SessionId" |
| DataRecurrenceField="" |
| DataRecurrenceParentKeyField="" |
| DataStartField="Start" |
| DataSubjectField="ClassName" |
| DayEndTime="22:00:00" |
| DayStartTime="06:00:00" |
| Height="100%" |
| RowHeight="21px" |
| runat="server" |
| SelectedView="WeekView" |
| ShowAllDayRow="false" |
| ShowFooter="false" |
| ShowHeader="false" |
| Skin="Web20" |
| Width="100%" |
| WorkDayEndTime="22:00:00" |
| WorkDayStartTime="06:00:00" |
| > |
| <WeekView ColumnHeaderDateFormat="dddd" /> |
| <AppointmentTemplate> |
| <div class="rsCustomAppointmentContainer"> |
| <h2> |
| <%#Eval("ClassName")%> |
| </h2> |
| <div> |
| </div> |
| </div> |
| </AppointmentTemplate> |
| </telerik:RadScheduler> |