I am trying to pass a value from my database "TrainerID" to my scheduler advanced form.
I have successfully databind the datasource to the scheduler and it displays fine, but when i double click to add a appointment entry i get the following error.
DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'TrainerID'
At the bottom note where it has Trainer_ID="<%# Bind('TrainerID') %>, if i put Trainer_ID="10" %> which is a proper trainer ID then ti works fine.
Am i missing something here?
This is the radscheduler aspx:
<telerik:RadScheduler ID="RadScheduler1" runat="server" Width="100%" Height="" DataKeyField="ScheduleID"
DataSubjectField="Subject" DataStartField="TimeStart" DataEndField="TimeEnd"
OnClientFormCreated="schedulerFormCreated" Skin="WebBlue" ShowFooter="False"
StartInsertingInAdvancedForm="True" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
HoursPanelTimeFormat="h:mmtt">
<AdvancedForm Modal="true" />
<TimelineView UserSelectable="false" />
<TimeSlotContextMenuSettings EnableDefault="true" />
<AppointmentContextMenuSettings EnableDefault="true" />
<AdvancedEditTemplate>
<scheduler:AdvancedForm runat="server" Mode="Edit" ID="AdvancedEditForm1" />
</AdvancedEditTemplate>
<AdvancedInsertTemplate>
<scheduler:AdvancedForm runat="server" Mode="Insert" ID="AdvancedInsertForm1" Trainer_ID="<%# Bind('TrainerID') %>" />
</AdvancedInsertTemplate>
</telerik:RadScheduler>
Please help!!
I have successfully databind the datasource to the scheduler and it displays fine, but when i double click to add a appointment entry i get the following error.
DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'TrainerID'
At the bottom note where it has Trainer_ID="<%# Bind('TrainerID') %>, if i put Trainer_ID="10" %> which is a proper trainer ID then ti works fine.
Am i missing something here?
This is the radscheduler aspx:
<telerik:RadScheduler ID="RadScheduler1" runat="server" Width="100%" Height="" DataKeyField="ScheduleID"
DataSubjectField="Subject" DataStartField="TimeStart" DataEndField="TimeEnd"
OnClientFormCreated="schedulerFormCreated" Skin="WebBlue" ShowFooter="False"
StartInsertingInAdvancedForm="True" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
HoursPanelTimeFormat="h:mmtt">
<AdvancedForm Modal="true" />
<TimelineView UserSelectable="false" />
<TimeSlotContextMenuSettings EnableDefault="true" />
<AppointmentContextMenuSettings EnableDefault="true" />
<AdvancedEditTemplate>
<scheduler:AdvancedForm runat="server" Mode="Edit" ID="AdvancedEditForm1" />
</AdvancedEditTemplate>
<AdvancedInsertTemplate>
<scheduler:AdvancedForm runat="server" Mode="Insert" ID="AdvancedInsertForm1" Trainer_ID="<%# Bind('TrainerID') %>" />
</AdvancedInsertTemplate>
</telerik:RadScheduler>
Please help!!