This is a migrated thread and some comments may be shown as answers.

A property named 'RecurrenceParentId' was not found

1 Answer 54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 16 Sep 2010, 06:16 PM
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.

<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


1 Answer, 1 is accepted

Sort by
0
Iker Llanos
Top achievements
Rank 1
answered on 17 Sep 2010, 08:13 AM
Case sensitive. Look:

-In radscheduler:  DataRecurrenceParentKeyField="RecurrenceParentId"
-    In database: [RecurrenceParentID] [int] NULL

The problem is de "ID"
Tags
Scheduler
Asked by
Richard
Top achievements
Rank 1
Answers by
Iker Llanos
Top achievements
Rank 1
Share this question
or