create event on double click of cell

2 posts, 1 answers
  1. Nithin
    Nithin avatar
    67 posts
    Member since:
    Mar 2018

    Posted 16 May 2018 Link to this post

    I'm trying to create an event on double click on a selected cell in the scheduler.
    I have already implemented right click and drag event create and left click and create event 

    The below code is for create event on right click and drag

    view.element.on("mouseup", ".k-scheduler-content td", function(e) {
         let scheduler = this;
         let selection =;
         let slot = scheduler.slotByElement($(;
         let resource = scheduler.resourcesBySlot(slot);
         let roomId = resource.RoomID;
         if ( && ! ) {
             //no events are selected then this is create
                   title:"No Title",
                   start: selection.start,
                   end: selection.end,
                   RoomID: roomId,


    How can i create event on double click on a selected event 

  2. Answer
    Dimitar avatar
    809 posts

    Posted 18 May 2018 Link to this post

    Hi Nithin,

    If I can understand you correctly, you would like to programmatically add an event to the Scheduler widget without triggering the create window. This can be achieved by defining a simple object that holds the desired event data and then using the dataSource's add() method to push the item:
      scheduler.view().element.on("dblclick", ".k-scheduler-content td", function(e) {             
        var event = {
          id: 1,
          title: "Eventasdasdasdas",
          start: new Date("2013/6/13 07:00 AM"),
          end: new Date("2013/6/13 09:00 AM")

    In addition to the above, the default behavior when you doubleclick in the Scheduler content area is to open the create event popup. In this specific scenario the default action needs to be prevented. This can be done in the edit event of the Scheduler:
      var scheduler = $("#scheduler").kendoScheduler({
        edit: function(e) {

    The above is also demonstrated on the following Dojo example.

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top