Auto Blockouts

Hi,
Is it possible somehow to autoblock all times that don't have appointments associated in the scheduler source? So from the backend lets say i return only 10 appointments, and i would need all other free slots to automatically be blockouts and not allow booking the appointments there.
Thanks.

1 Reply 1 reply marked as answer

NR Nevitha Ravi Syncfusion Team May 24, 2021 04:31 AM UTC

Hi Ivan, 

Greetings from Syncfusion Support. 

We can block time slots and allow booking appointments by using allowAdding option in eventSettings. We have shared a sample for your reference which can be viewed from the following link. 

        <ScheduleComponent 
          height="650px" 
          ref={schedule => (this.scheduleObj = schedule)} 
          selectedDate={new Date(2019010)} 
          eventSettings={dataSource: this.dataallowAdding: false }} 
        > 


Please try the above solution and let us know if this meets your requirement. 

Regards, 
Nevitha 


Marked as answer
Loader.
Up arrow icon