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

Recurrence from Custom Control to Scheduler

3 Answers 105 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ashish Sapkale
Top achievements
Rank 1
Ashish Sapkale asked on 01 Jul 2010, 03:13 PM

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

Sort by
0
T. Tsonev
Telerik team
answered on 07 Jul 2010, 05:18 PM
Hello Ashish,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ashish Sapkale
Top achievements
Rank 1
answered on 16 Jul 2010, 12:27 PM

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!

0
Accepted
Peter
Telerik team
answered on 22 Jul 2010, 09:35 AM
Hi Ashish,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Ashish Sapkale
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Ashish Sapkale
Top achievements
Rank 1
Peter
Telerik team
Share this question
or