@(Html.Kendo().Scheduler<ViewModel>()
.Name("scheduler")
.Date(DateTime.Today)
.Events(events => events
.Edit("ShowBookingPopup")
.Save("ShowBookingPopup")
......
)
*ShowBookingPopup - is the custom java script function through which you can have a condition to allow or block the editing like below.
function ShowBookingPopup(e) {
var today = new Date();
// Your custom condition to allow/block editing of the event
if (e.event.Start < today) {
// If the event date is in the past then disallow update by blocking the default behavior and showing an alert for the same
setTimeout(function () {
alert("Cannot edit the event.");
}, 0);
e.preventDefault();
}
}
You can also use other events explained in the example of telerik events and customize to your behavior of the scheduler. http://demos.telerik.com/kendo-ui/web/scheduler/move-resize.html