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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Scheduler: on drag create new appointment

Thread ID:

Created:

Updated:

Platform:

Replies:

142792 Feb 19,2019 09:29 AM UTC Feb 20,2019 09:05 AM UTC JavaScript - EJ 2 1
loading
Tags: Schedule
Arwin
Asked On February 19, 2019 09:29 AM UTC

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?

Karthigeyan Krishnamurthi [Syncfusion]
Replied On 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 
 
 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;