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

Reccurrent events: How to identify "serie" or "occurrence"

2 Answers 37 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Claudia
Top achievements
Rank 1
Claudia asked on 04 Feb 2019, 05:59 PM

Hi

I'm trying to add different behaviors if the user click "Delete/Edit serie" or "Delete/Edit occurrence". I will like to know if there is a way (I know you have it ;)) to know which option the user select in the "dialog".

Thank you in advance!!

2 Answers, 1 is accepted

Sort by
0
Accepted
Nencho
Telerik team
answered on 06 Feb 2019, 01:01 PM
Hello Claudia,

Yes, we do have a way to distinguish them :). You can use the isRecturrenceHead method of the Scheduler event, through the edit event arguments. Please consider the below implementation:

edit: function(e) {   
  console.log(e.event.isRecurrenceHead()) // true if you are editing the series ; false if you edit occurence
}

Here is a demo, showcasing the implementation:

https://dojo.telerik.com/@nenchef/eSupIPEC/2

Hope this would help.

Regards,
Nencho
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Claudia
Top achievements
Rank 1
answered on 06 Feb 2019, 02:12 PM
Thank you so much!!! I knew you had a way to do it like always ;)
Tags
Scheduler
Asked by
Claudia
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Claudia
Top achievements
Rank 1
Share this question
or