Hi Sinchan,
Syncfusion Greetings.
We could reproduce the issue at our end. Before setting custom work hours, we need to reset the work hours as highlighted below to resolve this problem. For your reference we prepared the sample below.
onDataBinding() {
if ((this.scheduleObj.activeView.viewClass !== "e-month-view") && (this.scheduleObj.activeView.viewClass !== 'e-agenda-view')) {
this.scheduleObj.activeView.renderDates.forEach(element => {
let day = (new Date(element).getDay()) + 1
this.workHours.forEach(workHour => {
if (workHour.DayNo === day) {
this.scheduleObj.resetWorkHours([new Date(element)], "00:00", "24:00");
this.scheduleObj.setWorkHours([new Date(element)], workHour.StartTime, workHour.EndTime)
}
})
})
}
}
Kindly try the able sample and let us know if you need further assistance on this.
Regards,
M.Vinitha devi