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

3 posts, 0 answers
  1. Claudia
    Claudia avatar
    33 posts
    Member since:
    Jun 2017

    Posted 04 Feb 2019 Link to this post

    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. Nencho
    Admin
    Nencho avatar
    1876 posts

    Posted 06 Feb 2019 Link to this post

    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.
  3. Claudia
    Claudia avatar
    33 posts
    Member since:
    Jun 2017

    Posted 06 Feb 2019 in reply to Nencho Link to this post

    Thank you so much!!! I knew you had a way to do it like always ;)
Back to Top