Possible to get the date of last occurance of an event?

2 posts, 0 answers
  1. Martin
    Martin avatar
    15 posts
    Member since:
    Sep 2013

    Posted 07 Nov 2013 Link to this post


    <script>
    var event = new kendo.data.SchedulerEvent({
     id: 1,
     start: new Date("2013/9/2 12:00"),
     end: new Date("2013/9/2 12:30"),
     title: "Lunch",
    recurrenceRule: "FREQ=MONTHLY;COUNT=2;BYMONTHDAY=15"
    });
    </script>

    How can I determine the last date of this recurring event?

    -Martin
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 08 Nov 2013 Link to this post

    Hello Martin,

     
    You can use Scheduler.expand method to generate a list of occurrences based on the recurring rule of the event. Check this jsBin demo, which shows how to achieve your goal.

    Regards,
    Georgi Krustev
    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
Back to Top