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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to open the editor after selecting the group of cells like Google?

Platform: JavaScript - EJ 2 |
Control: Schedule |
Published Date: May 15, 2019 |
Last Revised Date: May 15, 2019

This knowledge base article explains the way to open the editor after selecting the group of cells like Google.


Step 1: Create a React Scheduler by referring the following user guide link.


Step 2: Bind and un-bind the mouseup event in componentDidMount and componentWillUnmount as shown in the following code example.

componentDidMount() {
    document.addEventListener('mouseup', this.mouseupHandler.bind(this));
  componentWillUnmount() {
    document.removeEventListener('mouseup', this.mouseupHandler.bind(this));

Step 3: In mouseupHandler function, selected cells start and end time can be retrieved using getCellDetails function which then passed to openEditor function to open the editor as shown in the following code example.

mouseupHandler(e: any) {
    let sch: any = ((document.querySelector('.e-schedule')) as any).ej2_instances[0];
    var target = e.target.classList.contains('e-work-cells');
    var selectedCells = sch.element.querySelectorAll(".e-selected-cell");
    if (selectedCells.length > 1 && target) {
      var activeCellsData = sch.getCellDetails(sch.getSelectedElements());
      sch.openEditor(activeCellsData, 'Add');

Step 4: Run the sample, once the mouse is release after selecting the group of cells, editor will be opened as shown below.o/p image

 Figure 1: Editor window opened after selecting the group of cells.

Please refer the example from the following GitHub link.

Example – Open editor after selecting cells



You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile