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

Restriction of recurring events

5 Answers 41 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Pär Sandgren
Top achievements
Rank 1
Pär Sandgren asked on 19 Dec 2013, 01:53 PM
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

5 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 21 Dec 2013, 09:06 AM
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!
0
Pär Sandgren
Top achievements
Rank 1
answered on 15 Jan 2014, 01:37 PM
When dragging or editing an event, I want to prevent save if one of its recurring events overlap with anything else of that resourcetype.
0
Vladimir Iliev
Telerik team
answered on 15 Jan 2014, 02:14 PM
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!
0
Pär Sandgren
Top achievements
Rank 1
answered on 16 Jan 2014, 02:13 PM
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
0
Vladimir Iliev
Telerik team
answered on 20 Jan 2014, 12:52 PM
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!
Tags
Scheduler
Asked by
Pär Sandgren
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Pär Sandgren
Top achievements
Rank 1
Share this question
or