Hi Tony,
Thanks for your update.
We suspect that you want to hide the popup too in the locked day. In our previously shared sample we have just prevented the appointment creation in actionBegin event. We have modified the shared sample to prevent the opening of editor and quick popup on locked day as well using popupOpen event.
onActionBegin(args) {
if (args.requestType == 'eventCreate') {
var startTime = new Date(args.data[0].StartTime);
if (
this.lock &&
new Date(startTime).setHours(0, 0, 0, 0) ==
new Date().setHours(0, 0, 0, 0)
) {
//comparing start time with today
args.cancel = true;
}
}
}
onPopupOpen(args) {
if (args.type == 'Editor' || args.type == 'QuickInfo') {
var startTime = new Date(args.data.StartTime);
if (
this.lock &&
new Date(startTime).setHours(0, 0, 0, 0) ==
new Date().setHours(0, 0, 0, 0)
) {
//comparing start time with today
args.cancel = true;
}
}
}
In the above sample, today is locked for your reference. Please refer the sample and let us know fir further assistance.
Regards,
Nevitha