I want to display some data from a resource datasource but i get the error:
process is not a valid item of an appointment
here is my definition of radscheduler:
The line where the problem is at: <%# FormatText(Eval("process.Value").ToString())%> <-- DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'process'.
and here the code for my datasources:
Someone got some tips on how to solve this?
Cheers WIm
process is not a valid item of an appointment
here is my definition of radscheduler:
| <telerik:RadScheduler ID="RadScheduler1" runat="server" AllowDelete="True" AllowEdit="False" |
| AllowInsert="True" DataEndField="End" DataKeyField="ID" DataSourceID="dsSchedules" |
| DataStartField="Start" DataSubjectField="Subject" FirstDayOfWeek="Sunday" LastDayOfWeek="Saturday" |
| OverflowBehavior="Expand" SelectedView="WeekView" Culture="Dutch (Netherlands)" |
| DataRecurrenceField="strRecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" |
| MinutesPerRow="15" Skin="Web20" StartInsertingInAdvancedForm="True" EnableCustomAttributeEditing="True" |
| OnAppointmentCreated="RadScheduler1_AppointmentCreated" WeekColumnHeaderDateFormat="dddd, d" |
| WeekHeaderDateFormat="D" WorkDayEndTime="21:00:00" |
| WorkDayStartTime="07:30:00" ondatabound="RadScheduler1_DataBound" |
| CustomAttributeNames="Enabled,Remarks"> |
| <ResourceTypes> |
| <telerik:ResourceType DataSourceID="dsWorkFlows" KeyField="Key" |
| Name="process" TextField="Value" ForeignKeyField="workflowTypeID"/> |
| </ResourceTypes> |
| <AppointmentTemplate> |
| <table style="width: 100%;"> |
| <tr> |
| <td class="ScheduledTaskHeader" style="width: 16px;"> |
| <img runat="server" id="icon" alt="Icon" src='<%# GetImage(Eval("Start").ToString()) %>' style="float: left;" /> |
| </td> |
| <td class="ScheduledTaskHeader"> |
| <%# Eval("Subject") %> |
| </td> |
| </tr> |
| <tr> |
| <td class="ScheduledTaskBody" style="width: 16px;"> |
| <img alt="Icon" src="./Images/icons/process.png" style="float: left;" /> |
| </td> |
| <td class="ScheduledTaskBody"> |
| <%# FormatText(Eval("process.Value").ToString())%> |
| </td> |
| </tr> |
| </table> |
| </AppointmentTemplate> |
| </telerik:RadScheduler> |
and here the code for my datasources:
| <asp:ObjectDataSource ID="dsSchedulesNames" runat="server" DeleteMethod="DeleteGroupScheduledTasks" |
| SelectMethod="ScheduleNames" TypeName="Otto.Process.AdminWeb.ScheduleList"> |
| <DeleteParameters> |
| <asp:Parameter Name="Name" Type="String" /> |
| </DeleteParameters> |
| </asp:ObjectDataSource> |
| <asp:ObjectDataSource ID="dsSchedules" runat="server" DeleteMethod="DeleteSingleScheduledTask" |
| InsertMethod="InsertAppointment" SelectMethod="AllData" TypeName="Otto.Process.AdminWeb.ScheduleList" |
| UpdateMethod="UpdateAppointment"> |
| <DeleteParameters> |
| <asp:Parameter Name="ID" Type="String" /> |
| </DeleteParameters> |
| <UpdateParameters> |
| <asp:Parameter Name="ID" Type="String" /> |
| <asp:Parameter Name="Subject" Type="String" /> |
| <asp:Parameter Name="Start" Type="DateTime" /> |
| <asp:Parameter Name="End" Type="DateTime" /> |
| <asp:Parameter Name="RecurrenceRule" Type="String" /> |
| <asp:Parameter Name="RecurrenceParentID" Type="Object" /> |
| <asp:Parameter Name="RecurrenceState" Type="Object" /> |
| <asp:Parameter Name="workflowTypeID" Type="Int32" /> |
| </UpdateParameters> |
| <InsertParameters> |
| <asp:Parameter Name="Subject" Type="String" /> |
| <asp:Parameter Name="Start" Type="DateTime" /> |
| <asp:Parameter Name="End" Type="DateTime" /> |
| <asp:Parameter Name="strRecurrenceRule" Type="String" /> |
| <asp:Parameter Name="RecurrenceParentID" Type="Object" /> |
| <asp:Parameter Name="RecurrenceState" Type="Object" /> |
| <asp:Parameter Name="workflowTypeID" Type="Int32" /> |
| <asp:Parameter Name="Enabled" Type="Boolean" /> |
| <asp:Parameter Name="Remarks" Type="String" /> |
| </InsertParameters> |
| </asp:ObjectDataSource> |
| <asp:ObjectDataSource ID="dsWorkFlows" runat="server" |
| SelectMethod="WorkFLowList" |
| TypeName="Otto.Process.AdminWeb.WorkFlows"> |
| </asp:ObjectDataSource> |
Someone got some tips on how to solve this?
Cheers WIm