Use quickInfoTemplate with double-click

Hi,

Is there an easy way to re-use the quickInfoTemplate with a double click instead of a single click? We have a custom template that we use with a single click but we would like to disable the single-click and use this custom template only when the user double-click on a scheduler cell.

We have tried using the editorTemplate but it is not working with the custom template we have created which works perfectly with quickInfoTemplate content. So is there a way to somehow call quickInfoTemplate with double-click?

Thanks


1 Reply 1 reply marked as answer

VD Vinitha Devi Murugan Syncfusion Team July 28, 2021 07:32 AM UTC

Hi Victor, 
 
Greetings from Syncfusion Support. 
 
We have validated your reported query “Is there an easy way to re-use the quickInfoTemplate with a double click instead of a single click” and achieved your requirement by using eventClick, cellClick and popupOpen events of our scheduler with below code. We have prepared below sample for your reference.  
 
 
  onCellClick(args) { 
    // Open quickinfo in double click 
    this.clickCount++; 
    if (this.clickCount === 1) { 
      this.singleClickTimer = setTimeout(() => { 
        this.clickCount = 0; 
      }, 400); 
      args.cancel = true; 
    } else if (this.clickCount === 2) { 
      args.cancel = false; 
      clearTimeout(this.singleClickTimer); 
      this.clickCount = 0; 
    } 
  } 
  onPopupOpen(args) { 
    if (args.type === 'Editor') { 
      // Prevent editor window opening on double click 
      args.cancel = true; 
    } 
  } 
 
Kindly try with the above sample and get back to us if you need any further assistance 
 
Regards, 
Vinitha 


Marked as answer
Loader.
Up arrow icon