search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Avoid Events Overlapping

Asked by Anonymous
17 years ago.
Is the any property to specify in order to avoid overlapping events?
Comment posted by Dan Letecky
17 years ago.
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.
Comment posted by Anonymous
16 years ago.
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
Comment posted by Dan Letecky
16 years ago.
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.
Comment posted by Anonymous
16 years ago.

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

Best Regards

Andrew

Comment posted by Dan Letecky
16 years ago.
Yes, I will make it a priority requirement for 4.4 release.
Comment posted by Anonymous
16 years ago.

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

Comment posted by Dan Letecky
16 years ago.
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.
Comment posted by Anonymous
14 years ago.

hi, is there an example on how i can achieve event overlapping?

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.