Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Renato on Oct 09, 2009 10:43
open dhtmlx forum
Prevent event overlapping in dhtmlxScheduler

Is there any way to block event overlapping during create or during drag n' drop/update processes?

Thanks,
Renato
Answer posted by Stanislav (support) on Oct 12, 2009 06:32
There is no such built in functionality, but you can add custom code to onEventChanged, onEventAdded , which will check is new event overlap any others and execute some kind of reaction. 
Overlapping itself can be checked by using 

scheduler.getEvents(ev.start_date, ev.end_date);
if it will return array with more than one elements - there is an overlapping.