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
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
0
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
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
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
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
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
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
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:
- SchedulerDataSource expand method - used for expanding all events for given period
- SchedulerEvent expand method - used for expanding single event for given period
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!