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

Delete the series on recurring items

1 Answer 58 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Cheryl
Top achievements
Rank 1
Veteran
Cheryl asked on 19 May 2020, 04:01 PM

Hi,

When you have a recurring item in a scheduler and you hit the x , you get the delete dialog box which asks

  • "Delete current occurrence" or
  • "Delete the series"

 

I would like it so that if you choose delete the series,I don't want to delete ones that have already happened and have an exception rule on them.  I can handle this server side, but right now when it hits my server, i don't know which of these options was chosen.

Is there anything I can hook into to post back to my method to say whether delete current occurrence or delete whole series was clicked?

Alternatively, is there another way to achieve this.

 

 

Thanks in advance.

Cheryl

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 22 May 2020, 12:01 PM

Hi Cheryl,

If we talk in general, when the "Delete current occurrence" button is clicked, the Scheduler will call the Update backend method. When the "Delete the series" button is clicked, the Scheduler will call the "Destroy" controller method. 

In the scenario where "Delete the series" has been clicked, in the Destroy method, you can edit the recurring event that is passed to the Destroy method.  The recurrence rule of this event should be changed in a way it will fit the business logic of you application.  

I hope the above will help you resolve the issue. Let me know if you have any questions. 

Regards,
Petar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Scheduler
Asked by
Cheryl
Top achievements
Rank 1
Veteran
Answers by
Petar
Telerik team
Share this question
or