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

isSlotAvailable only checks currently visible events


I'm using the Scheduler with a "New Event" dialog completely of my own. Here's kind of how it's working:

I open my custom "New Event" dialog instead of the default one whenever the user clicks on a time slot in the Scheduler.

In my dialog, I allow the user to choose from a list of pre-defined StartDate hours. Everytime the user chooses a different starting hour, I call the scheduler's isSlotAvailable() method to check if the selected starting hour is available. If it's not available, I display a warning message to the user.

However, I noticed that it is only checking the availability taking in account the events currently visible in the Scheduler. If I choose a start date that's not currently being shown in the Scheduler, isSlotAvailable will always​ return true​. Once I move in the Scheduler to make that particular date visible, isSlotAvailable starts actually working.

Is there any way to fix this?

Thanks in advance for your help.

1 Reply

SR Swathi Ravi Syncfusion Team March 28, 2023 11:03 AM UTC

Hi David,

According to current scheduler architecture, the isSlotAvailable method is applicable only for check the overlapping appointments for current view dates only. Because if we check the overlapping for all the appointments bound to the Schedule it will leads to performance issue.


Swathi Ravi 

Live Chat Icon For mobile
Up arrow icon