DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Features » Avoid Events Overlapping

Avoid Events Overlapping

Is the any property to specify in order to avoid overlapping events?
Anonymous - 8/7/2007 3:37:49 PM
There are two issues with overlapping:

1) Showing overlapping events
DayPilot always shows what it gets in the data source. If there are two overlapping events both will be rendered. You can handle this on the data source level - you apply your rules in the SP/SELECT from the database or preprocess the loaded data in the application.
This behavior is not likely to be changed. I can't imagine other handling of overlapping events (other than joining them into one). So DayPilot will always, in order to prevent messy rendering, arrange the overlapping events in the same way.

2) Creating overlapping events
There are two places where it makes sense to handle:

A) On the client side where you could prevent time range selection in areas where there is another event already. This is not yet implemented. However, it's in the roadmap as F11 Overlap protection. The release is not yet assigned. That might change if you really need it but see B) below.

B) On the server side, in TimeRangeSelected handler. Here you have a chance to check if the new event would match your rules (including overlapping with other events, but there can be other rules applied, like compliance with business hours, etc.). You can change the start/end date before saving it in the database. You should check the rules on the server side anyway (event with A) implemented). That means that A) is mainly a hint for the user about what is allowed or not.

Let me know if this helps.
Dan Letecky - 8/8/2007 9:11:13 AM
Hi
Implementation for client overlap prevention would be very useful as this allows the UI to reflect exactly what is available for the user to select, rather than allowing a period to be selected that is then reduced after a server roundtrip. Any idea when this will be planned as it has been on the list for a while.
Regards
Andrew
Anonymous - 11/14/2007 11:47:01 AM
It's now much easier to achieve because the control has a list of event on the client side (since 4.0 release). I'm adding it to the spec for 4.4 release (1 January 2007) but it may slip into 4.5.
Dan Letecky - 11/14/2007 2:29:08 PM

Would it possible to keep this 4.4 as it is crucial for my development?

Best Regards

Andrew

Anonymous - 11/15/2007 12:55:42 AM
Yes, I will make it a priority requirement for 4.4 release.
Dan Letecky - 11/16/2007 5:13:09 PM

Hi I have seen that this functionality has been droped from 4.4. I have several projects that this control would be very useful and overlap protection is a feature in every other calender control.> Can you please confirm if this is indeed in 4.4?

Thanks

Z

Anonymous - 1/22/2008 1:48:52 AM
I didn't manage to implement all the features from the 4.4 spec and event overlapping is one of the missing features. I will be working on it now and hopefully it will be available in a service pack before 4.5. Sorry for the complications.
Dan Letecky - 1/22/2008 8:34:20 AM
Post reply