the current behaviour of Kendo Scheduler stands like this - you have to double-click to create / view / edit an event.
I'm looking for solution like here: https://dojo.telerik.com/IPOsutAD but for Vue.
Any help would be appreciated
Axel
3 Answers, 1 is accepted
0
Petar
Telerik team
answered on 14 Jan 2021, 07:21 AM
Hello Axel,
Can you check this StackBlitz example and let me know if it demonstrates the functionality that you want to implement?
To create a new event with one click, the following code is executed in the mounted hook:
let scheduler = this.$refs.scheduler.kendoWidget();
scheduler.wrapper.on(
"mouseup touchend",
".k-scheduler-table td, .k-event",
function(e) {
var target = $(e.currentTarget);
if (target.hasClass("k-event")) {
var event = scheduler.occurrenceByUid(target.data("uid"));
scheduler.editEvent(event);
} else {
var slot = scheduler.slotByElement(target[0]);
scheduler.addEvent({
start: slot.startDate,
end: slot.endDate
});
}
}
);
I hope the above example is what you are searching for.
Regards,
Petar
Progress Telerik
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/.
Hello Peter,
Yes! This is exactly what I looked for!
Really really thank you and appreciate
Regards
Axel
0
Petar
Telerik team
answered on 19 Jan 2021, 06:37 AM
Hello Axel,
I am happy to hear that the suggested example demonstrates what you need to have in your application.
Based on your response I would assume that the current ticket can be closed. I will close the thread but if you need furhter assistance with it, you can reopen it anytime or submit a new one.
Regards,
Petar
Progress Telerik
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/.