Recurrence exceptions

4 posts, 1 answers
  1. Abradax
    Abradax avatar
    14 posts
    Member since:
    Feb 2014

    Posted 14 Oct 2015 Link to this post

    I hope I am explaining this correctly.

    I am developing a Scheduling platform for my company.  Everything is going well, except for one thing.  Our users can take half days, or get meeting requests that can split one of their recurring shifts.

    For example:

    User A has a repeating schedule M-F 8 - 5
    A request is submitted so that on Wednesday, he has a meeting from 2-3.

    I am unsure how to handle this type of exception, I would like for his Wednesday schedule to show him working 8-2, then meeting, then 3-5 and not two entries showing a meeting and then his schedule.

    Is this possible using Kendo or even in the RFC 5545 standard?

    Is this going to have to be done programatically in that I search my calendar for the user, find his schedule and parse his recurrence than figure out what day he works and hours and enter multiple events so that there would be 3 exceptions for the scenario listed above?  (one for 8-2, one for 2-3, and one for 3-5)

    Or is there a way to create the new meeting request from 2-3 then have that appointment's ID excepted from the recurrence rule?

  2. Answer
    Vladimir Iliev
    Vladimir Iliev avatar
    2206 posts

    Posted 16 Oct 2015 Link to this post

    Hello Robert,

    This can be achieved using the scheduler and it's dataSource API. For convenience I created small example which you can use as baseline to achieve the desired behavior:

    Vladimir Iliev
    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 Feedback Portal and vote to affect the priority of the items
  3. Amy
    Amy avatar
    1 posts
    Member since:
    May 2017

    Posted 07 Aug 2018 Link to this post

    Is there a way to do this using MVC?
  4. Nencho
    Nencho avatar
    1880 posts

    Posted 09 Aug 2018 Link to this post

    Hello Amy,

    In case you need to use the HTML MVC Helper instead of the jQuery widget, you will need to follow the same approach and implement the same event handler for the Save event.

    In case you would like to create the discussed duplicated exception event on the server, you could also do that. What is important in this case is to create the exception rule for the two new events following the required format (Date ISO string). Further information on the Scheduler model fields could be found here.

    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.
Back to Top