I have placed a radScheduler on a web page and hooked it up to linq-to-entities that is interfacing to a table called Appointments. I have all the fields I need to do CRUD operations but when I try to add an appointment by double-clicking on a day and then simply entering a value and clicking Save, I get this error:
"Error: Sys.WebForms.PageRequestManagerServerErrorException: A property named 'RecurrenceParentId' was not found on the entity during an insert, update, or delete operation. Check to ensure that properties specified as binding expressions are available to the data source."
My entity includes the field, "RecurrenceParentId", so I am not quite sure what this error is or how to solve it. My mark-up code is shown below. there is no code in the code-behind as I am interacing to the entity.
and here is my table called Appointments:
"Error: Sys.WebForms.PageRequestManagerServerErrorException: A property named 'RecurrenceParentId' was not found on the entity during an insert, update, or delete operation. Check to ensure that properties specified as binding expressions are available to the data source."
My entity includes the field, "RecurrenceParentId", so I am not quite sure what this error is or how to solve it. My mark-up code is shown below. there is no code in the code-behind as I am interacing to the entity.
<
telerik:RadScheduler
runat
=
"server"
ID
=
"radSchAppointments"
Width
=
"1100px"
Height
=
"700px"
DayStartTime
=
"08:00:00"
DayEndTime
=
"20:00:00"
TimeZoneOffset
=
"03:00:00"
DataKeyField
=
"ID"
DataSubjectField
=
"Subject"
DataStartField
=
"Start"
DataEndField
=
"End"
DataRecurrenceField
=
"RecurrenceRule"
DataRecurrenceParentKeyField
=
"RecurrenceParentId"
DataSourceID
=
"edsAppointments"
SelectedView
=
"MonthView"
>
<
AdvancedForm
Modal
=
"true"
/>
<
TimelineView
UserSelectable
=
"false"
/>
<
TimeSlotContextMenuSettings
EnableDefault
=
"true"
/>
<
AppointmentContextMenuSettings
EnableDefault
=
"true"
/>
</
telerik:RadScheduler
>
<
asp:EntityDataSource
ID
=
"edsAppointments"
runat
=
"server"
ConnectionString
=
"name=StoneFalconEntities"
DefaultContainerName
=
"StoneFalconEntities"
EnableDelete
=
"True"
EnableInsert
=
"True"
EnableUpdate
=
"True"
EntitySetName
=
"Appointments"
>
</
asp:EntityDataSource
>
and here is my table called Appointments:
CREATE TABLE [dbo].[Appointments](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Subject] [nvarchar](200) NULL,
[Start] [datetime] NULL,
[End] [datetime] NULL,
[RoomID] [int] NULL,
[UserID] [int] NULL,
[RecurrenceRule] [nvarchar](50) NULL,
[RecurrenceParentID] [int] NULL,
CONSTRAINT [PK_Appointments] PRIMARY KEY CLUSTERED