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

How to tell difference between DeleteOccurrence and DeleteSeries

3 Answers 182 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rubens
Top achievements
Rank 1
Rubens asked on 28 Jul 2010, 03:02 PM
Hi,

I'm using RadScheduler with a custom DbSchedulerProviderBase. How can I tell, inside DbSchedulerProviderBase.Delete(RadScheduler, Appointment) method if user chose to delete just that recurrence occurrence or the entire serie?

TIA,

Rubens

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 03 Aug 2010, 08:17 AM
Hello Rubens,

The delete operation will not be called for occurrences as they're not represented by "physical" record and are generated on the fly.

Deleting an occurrence will actually call the Update method of the master appointment. The recurrence rule will be updated to include the occurrence date as "recurrence exception date".

I hope this helps.

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
Rubens
Top achievements
Rank 1
answered on 03 Aug 2010, 06:49 PM
Tsvetomir, thanks for your reply.

I'm implementing a custom DbSchedulerProviderBase and I need to know if user chose to update/delete just an occurrence or entire serie to persist that in my custom database schema. In this particular schema, I need to split exceptions from their master records.

I tried to replace all advanced form feature by using RadScheduler.OnClientAppointmentEditing event and calling eventArgs.get_editingRecurringSeries() but it's taking too much development effort. I'm looking for a simpler way.

TIA
0
T. Tsonev
Telerik team
answered on 06 Aug 2010, 02:25 PM
Hi Rubens,

I think the EditingRecurringSeries properties of the RadScheduler instance is what you need.

I hope this helps.

Greetings,
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
Tags
Scheduler
Asked by
Rubens
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Rubens
Top achievements
Rank 1
Share this question
or