_:n4f6f974fa3d44ca6aa7fb253c66d0885xb3
<http://schema.org/text>
"Hi Jan,&nbsp;\r\n&nbsp;\r\nThank you for contacting Syncfusion support.&nbsp;\r\n&nbsp;\r\nWe have prepared the sample to prevent the rendering of an appointment in the time range of an already rendered appointments which can be download from the below location.&nbsp;\r\nhttp://www.syncfusion.com/downloads/support/forum/129158/ze/Sample1707430981&nbsp;\r\n&nbsp;\r\nIn the sample, initially two appointment will render in same day and same time. When &nbsp;3rd appointment is created in already rendered appointment interval range it will not be created. Kindly refer the below code example used in the sample.&nbsp;\r\n&nbsp;\r\n&lt;Code&gt;&nbsp;\r\nfunction onBeforeAppointmentCreate(args) { // this function will be called before saving an app &nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var curApps = (ej.isNullOrUndefined(args.appointment[0])) ? args.appointment : args.appointment[0];&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var proxy = this, _appList = this._processed, appointmentsList = [], app = [], appList = [], overlapList = [];&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; appointmentsList = _appList.filter(function (obj) { return obj[proxy._appointmentSettings[\"endTime\"]] &gt; curApps[proxy._appointmentSettings[\"startTime\"]] &amp;&amp; obj[proxy._appointmentSettings[\"startTime\"]] &lt; curApps[proxy._appointmentSettings[\"endTime\"]]; });&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; appointmentsList.forEach(function (obj) {&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; appList = _appList.filter(function (list) { return list[proxy._appointmentSettings[\"endTime\"]] &gt;= new Date(obj[proxy._appointmentSettings[\"startTime\"]]) &amp;&amp; list[proxy._appointmentSettings[\"startTime\"]] &lt;= new Date(obj[proxy._appointmentSettings[\"endTime\"]]); });&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var collection = $(appList).not(appointmentsList);&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if (collection.length != 0) app = $.merge(app, collection);&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return app;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; overlapList = $.merge(appointmentsList, app);&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; args.cancel = (overlapList.length &gt; 1);&nbsp;\r\n&nbsp;&nbsp;&nbsp; }&nbsp;\r\n&lt;/Code&gt;&nbsp;\r\n&nbsp;\r\n&nbsp;Regards,&nbsp;\r\nKarthigeyan&nbsp;"
<https://www.syncfusion.com/forums/129158/limiting-the-amount-of-appointment-by-time>