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

[Solved] RecurrenceExceptionCreated - DateTime of Occurrence

2 Answers 130 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevin Schneider
Top achievements
Rank 1
Kevin Schneider asked on 07 May 2008, 02:56 PM
When dragging a specific occurrence of a recurring event to a new date on the scheduler the RecurrenceExceptionCreated event is fired. 

In the RecurrenceExceptionCreatedEventArgs I have access to 2 different appointment objects:

e.Appointment gives me access to the master appointment.  The start/end dates for this object are the original recurrence values.

e.ExceptionAppointment gives me access to the "new" exception appointment.  The start/end dates for this object are the new exception dates.



How do I gain access to the start/end date of the actual occurrence that is being dragged?  So if a recurrence started on Monday and went to Friday and recurred every day and I dragged Wednesday to the next week, how do I know which date Wednesday was?

I can see it in the updated RecurrenceRule for e.Appointment but parsing that out would be a really ugly solution.

Also you have the following enumerator value:

RecurrenceState.Occurence

Please refer to: http://en.wiktionary.org/wiki/occurence

Noun

occurence

  1. Common misspelling of occurrence

2 Answers, 1 is accepted

Sort by
0
Kevin Schneider
Top achievements
Rank 1
answered on 07 May 2008, 03:13 PM
On a related note:
 
How do I know within the AppointmentDelete event whether the user chose to delete a single occurrence or delete the series when they are deleting a recurring event?

Thanks.
0
Accepted
T. Tsonev
Telerik team
answered on 08 May 2008, 11:18 AM
Hello Kevin,

Thank you for your feedback. Having a reference to the occurrence in RecurrenceExceptionCreatedEventArgs seems like a very good idea. We will also take care for the misspelling of occurrence.

You can check if a recurring series is currently being deleted by inspecting the value of the RadScheduler.EditingRecurringSeries property.

All of these fixes are already implemented and will be included in the upcoming service pack. If you need the hotfix now, please open a formal support ticket, so we can send it to you.

Your Telerik points have been updated for your involvement.

All the best,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Kevin Schneider
Top achievements
Rank 1
Answers by
Kevin Schneider
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or