is it possible to display a warning on the scheduler when Update action is triggered? It happens often that users change the dates by mistake when using scheduler (they drag and drop or expand).
Thanks.
2 Answers, 1 is accepted
0
Accepted
Aleksandar
Telerik team
answered on 28 Jul 2021, 07:21 AM
Hello Boris,
If Dragging and Dropping events and expanding them is not desired you can disable those features via the .Editable() configuration and setting the .Move(false) and .Resize(false):
.Editable(e=>e.Move(false).Resize(false))
If the functionality is required you can handle the MoveEnd and ResizeEnd events and prompt the user to confirm the change, for example you can implement the following handler for the MoveEnd event:
functionscheduler_moveEnd(e) {
var scheduler = e.sender;
var task = e.event;
var start = e.start;
var end = e.end;
e.preventDefault()
kendo.confirm("Save changes").then(function(){
var editedEvent = scheduler.dataSource.get(task.id);
editedEvent.set("start",start);
editedEvent.set("end",end);
})
}
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.