We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Prevent creation and changing of an Event in Timeline View from Schedule

Hi.

I'm new bie in syncfusion components.

I'm trying to prevent creation and changing of an event in an occupied appointment especifically, but NOT in your timeSlot. Example: If you use Room demo, I need to block an event into same time interval for a specific room. Just one Event for an interval. I don't want "+n more" below them.

Reading the documentation I saw the example using isSlotAvailable(startDate, endDate). Ok, but that example block the entire timeSlot, for all rooms.

How can I use more informations to decide if cancel or not the creation/changing an Event? I need startDate, endDate and ResourceId to decide this.

Thank you.


Sorry for my

3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team May 13, 2019 10:39 AM UTC

Hi Gerson,    
 
Greetings from Syncfusion. 
 
In our below online sample, resource id is passed to isSlotAvailable method with in actionBegin event function as per your requirement and kindly refer the links. 
 
Regards, 
Karthi 



GC Gerson C Teixeira May 17, 2019 07:43 PM UTC

Thank you.

Solved my problem.


NR Nevitha Ravi Syncfusion Team May 20, 2019 04:49 AM UTC

Hi Gerson, 

Most welcome! We are glad that your problem has been resolved. 

Regards, 
Nevitha 


Loader.
Live Chat Icon For mobile
Up arrow icon