Hello,
I have recurrence editor only in one of my Custom Control. I am passing start and end date and retrieving recurrence rule.
and storing it into Database.
Now I am trying to add this rule to Scheduler from database.
I can see only first appointment.
In watch, at recurrence state I am getting Exception.
Please Help me out.
Thank You!
Ashish Sapkale
3 Answers, 1 is accepted
Thank you for your interest in our products.
Please make sure that the RecurrenceParentID value is null for newly created appointments. Can you show us the data that gets stored in the database?
Kind regards,
Tsvetomir Tsonev
the Telerik team
Hello,
Sorry about late reply
I am have attached my Recurrence Table Screen Shot.
I have My RecurrenceParentId set to NULL.
I have bind this data to scheduler like the code below
01.
RadSchedulerCalendarEvents.DataKeyField =
"evtID"
;
02.
RadSchedulerCalendarEvents.DataSubjectField =
"evtSubject"
;
03.
RadSchedulerCalendarEvents.DataDescriptionField =
"evtDescription"
;
04.
RadSchedulerCalendarEvents.DataStartField =
"evtStart"
;
05.
RadSchedulerCalendarEvents.DataEndField =
"evtEnd"
;
06.
RadSchedulerCalendarEvents.DataRecurrenceParentKeyField =
"rcrevtRecurrenceParentID"
;
07.
RadSchedulerCalendarEvents.DataRecurrenceField =
"rcrRecurrenceRule"
;
08.
09.
RadSchedulerCalendarEvents.DataSource = dsCalendarEvents;
10.
RadSchedulerCalendarEvents.DataBind();
I have separate page to add Appointment.
and different page to view appointments in Scheduler.
I have used Recurrence editor for Recurrence Appointment.
In viewing appointment in scheduler.
I can view only todays appointment for recurrence appointment neither past nor future.
Thank You!
i tested a random recurrence rule from the screenshot (second one actually) with the XmlSchedulerProvider and it worked as expected.
<
Appointment
>
<
ID
>89</
ID
>
<
Subject
>a</
Subject
>
<
Start
>2010-07-19T10:00Z</
Start
>
<
End
>2010-07-19T11:00Z</
End
>
<
RecurrenceRule
>
<![CDATA[DTSTART:20100701T043000Z
DTEND:20100701T050000Z
RRULE:FREQ=DAILY;UNTIL=20100731T000000Z;INTERVAL=2;BYDAY=MO,TU,WE,TH,FR
]]>
</
RecurrenceRule
>
</
Appointment
>
I also tested creating a new appointment with the RadSchedulerRecurrenceEditor and this worked fine as well. Attached you will find a simple demo for reference.
If you continue to experience problems, I advise you to open a support ticket and send us a simple working project which we can run and debug locally.
Best wishes,
Peter
the Telerik team