Dear Customer,
Greeting from Syncfusion.
We have prepared the below sample to prevent the CRUD actions in the past time cells.
eventRendered: function (args) {
if (new Date() - new Date(args.data.StartTime) > 0) {
args.data.IsReadonly = true
args.element.setAttribute('aria-readonly', 'true');
args.element.classList.add('e-read-only');
}
},
dragStop: function (args) {
if (new Date() - new Date(args.data.StartTime) > 0) {
args.cancel = true;
}
},
resizeStop: function (args) {
if (new Date() - new Date(args.data.StartTime) > 0) {
args.cancel = true;
}
},
popupOpen: function (args) {
if (new Date() - new Date(args.data.startTime) > 0) {
args.cancel = true;
}
},
actionBegin: function (args) {
if (args.requestType == 'eventCreate' || args.requestType == 'eventDelete' || args.requestType == 'eventChange') {
let data = (args.requestType == 'eventCreate') ? args.data[0] : args.data;
if (new Date() - new Date(data.StartTime) > 0) {
args.cancel = true;
}
}
}
Regards,
Karthi