Restriction of recurring events

6 posts, 0 answers
  1. Pär Sandgren
    Pär Sandgren avatar
    7 posts
    Member since:
    Dec 2013

    Posted 19 Dec 2013 Link to this post

    Hello again!

    The restriction works really well for drag & drop, but I'm having troubles with preventing recurring events to overlap. I can do this serverside, but that's not really the friendly way. Anyone got any tips?

    // Pär
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 21 Dec 2013 Link to this post

    Hi Par,

    Could you please provide more detailed information about what exactly you are refering to with "preventing recurring events to overlap"?

    Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Pär Sandgren
    Pär Sandgren avatar
    7 posts
    Member since:
    Dec 2013

    Posted 15 Jan 2014 Link to this post

    When dragging or editing an event, I want to prevent save if one of its recurring events overlap with anything else of that resourcetype.
  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 15 Jan 2014 Link to this post

    Hi Par,

    I would suggest to check the Scheduler "Restrictions" demo and extend it to achieve the desired behavior. The demo is also available in the offline demos that comes with your KendoUI for ASP.NET MVC installation. 

    Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Pär Sandgren
    Pär Sandgren avatar
    7 posts
    Member since:
    Dec 2013

    Posted 16 Jan 2014 Link to this post

    Hello,

    That is exactly what I'm trying to do, but I can't figure out how.

    I would like to get the enddate for the last occurrence in the series, to be able to get the occurrences from the scheduler (from "now" to "last.end") , but there is just so much code  :D.

    // Pär
  7. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 20 Jan 2014 Link to this post

    Hi Par,

    Please note that if given recurring event has no end date or recurrence 'count' in the recurrence rule indeed  there is no 'last' occurrence - in such case you can only expand the recurrence for given time period using the following methods:


    If the event has end date defined ("UNTIL" or "COUNT") in the recurrence rule than you can implement custom solution to use that rule to calculate the last date and pass it to the "expand" method of the event to get the last occurrence in the series.

    Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready