This is a migrated thread and some comments may be shown as answers.

Single Click instead of Double Click

3 Answers 92 Views
This is a migrated thread and some comments may be shown as answers.
Axel
Top achievements
Rank 1
Axel asked on 12 Jan 2021, 09:20 AM
Hello, 

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

Sort by
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/.

0
Axel
Top achievements
Rank 1
answered on 15 Jan 2021, 02:17 PM
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/.

Asked by
Axel
Top achievements
Rank 1
Answers by
Petar
Telerik team
Axel
Top achievements
Rank 1
Share this question
or