We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Scheduler: on drag create new appointment

Hi,

When I click a cell I can create a new appointment, but when I select multiple cells by dragging the mouse I have to hit Enter to create an appointment.

Is there a way to create a new appointment on drag stop/mouse up?

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team February 20, 2019 09:05 AM UTC

 
Thank you for contacting Syncfusion support. 
 
Schedule has Context menu option to open the editor window after selecting the group of cells and kindly refer the below link. 
 
We have prepared the below sample to open the editor window after selecting the group of cells. 
 
created() { 
    document.addEventListener("mouseup", this.mouseUp); 
  }, 
  beforeDestroy() { 
    document.removeEventListener("mouseup", this.mouseUp); 
  }, 
 
mouseUp: function(args) { 
      if (args.target.classList.contains("e-work-cells")) { 
        let scheduleObj = document.getElementById("Schedule").ej2_instances[0]; 
        var selectedCells = scheduleObj.element.querySelectorAll( 
          ".e-selected-cell" 
        ); 
        if (selectedCells.length > 1) { 
          var activeCellsData = scheduleObj.getCellDetails( 
            scheduleObj.getSelectedElements() 
          ); 
          scheduleObj.openEditor(activeCellsData, "Add"); 
        } 
      } 
    } 
 
 
Regards, 
Karthigeyan 
 
 
 


Loader.
Up arrow icon