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

Recurrence state of Radschedular not coming to Exception State

7 Answers 106 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 29 Aug 2011, 01:56 PM
Hi,
Is this recurrence rule is exceptional:
DTSTART:20110907T183000Z
DTEND:20110908T083000Z
RRULE:FREQ=WEEKLY;COUNT=5;INTERVAL=1;BYDAY=MO,TU
EXDATE:20110911T183000Z

as it is not coming to RecurrenceState.Exception in appointment_created event of radschedular.
my schedular is working fine except on editing indivisual appointment of recurring appointment it doesnot show that appointment again on editing as it never comes to exceptional state in Appointment_created event.
I am attaching the xml and my code of schedular,
Pls Help.........

Thanks

7 Answers, 1 is accepted

Sort by
0
Dan Lehmann
Top achievements
Rank 1
answered on 29 Aug 2011, 03:51 PM
Hi, you need to handle the AppointmentUpdate event for the parrent recurring appointment to add the exception to the RecurrenceRule. Immedietly after, handle AppointmentInsert for the occurance being altered, unless it was a deletion then there is nothing to handle.

Hope that helps,
Dan
0
Kevin
Top achievements
Rank 1
answered on 30 Aug 2011, 06:01 AM
How can i Know that Appointment is updated for whole recurring appointment or an indivisual appointment. Like i am already handling
AppointmentUpdate  event and it changes the recurrence rule of appointment for that indivisual appoiintment with KeyWord EXDATE and Date of Indivisual appointment but appointment never comes to Exception State for that Date.

Do I need to call appointment Insert after it Update Indivisual appointment. Please clarify ...
it will be better if u can explain with Example.
I an attaching my appointment Update and appointment Insert events.


Thanks
0
Accepted
Dan Lehmann
Top achievements
Rank 1
answered on 30 Aug 2011, 02:38 PM
You may have a wrong signature. Try:
protected void RadScheduler1_AppointmentInsert(object sender, AppointmentInsertEventArgs e)

Then to test,
1 Put a breakpoint on RadScheduler1_AppointmentInsert and RadScheduler1_AppointmentUpdate.
2 Create a new recurring appointment.
3 Edit one occurrence to add 1 hour to the start and end time.
4 Click Save.
5 Should break on the AppointmentInsert event handler to update the parrent appointment RecurrenceRule
6 Should then break on the AppointmentInsert  handler to add a new appointment for the exception, and the RecurrenceParentShedule_id for this appointment should be set to the id of the parent recurring appointment.

Dan
0
Kevin
Top achievements
Rank 1
answered on 31 Aug 2011, 02:24 PM
Thanks Dan for reply. it really helps, but also arises one issue. Now on editing single reccurrence i am able to insert new one with same id as of parent Appointment and new appointment shows in the schedular, but i am still not able to get image of exception appointment. it just show it as normal recurring appointment.is any other recurrence rule will be generated in acse of editing indivisual appointment ?
Also if i edit while series of recurrence and i click on the reset exception link  then it is not deleting the new entry added but restore previously edited indivisual appointment making it two appointment on same day. One of recursive and one exceptional.
I am attaching screenshots of Problem. Appointment Delete event does not fire on clicking link resetException link.
Pls Reply..


Thanks
0
Dan Lehmann
Top achievements
Rank 1
answered on 31 Aug 2011, 02:39 PM
Sorry, I don't know anything about exception images. But I am having the same problem with "reset exceptions". I also have other problems with my Scheduler I'm trying to fix so I don't know what to blame..

I expected "reset exceptions" to work just the opposite as when an exception is created. First AppointmentUpdate handler to update the parent RecurrenceRule. Then AppointmentDelete to remove the actual exception appointment.

Perhaps a new thread/question is needed for "reset exceptions"?

Good Luck,
Dan
0
Nikolay Tsenkov
Telerik team
answered on 05 Sep 2011, 11:05 AM
Hi guys,

@Dan, could you, please, open a support ticket with a detailed description of the issue you experience with resetting the exception appointments?

@Kevin, as much as I understood you are wondering if the exception icon should be displayed for exception from which a new recurrence series is started. If this is the question, then the answer is "no". The exception is no longer displayed since it's not clear if this appointment is an exception to the original recurrence rule or the secondary. Please, further explain if I didn't understand what seems to be the issue.

Regards,
Nikolay Tsenkov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Dan Lehmann
Top achievements
Rank 1
answered on 06 Sep 2011, 02:36 PM
My issue turned out to be different. regardless, it's ticket #459649.

Thanks,
Dan
Tags
Scheduler
Asked by
Kevin
Top achievements
Rank 1
Answers by
Dan Lehmann
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or