Is there an event for doubleclicking an appointment in schedule?

How can I fetch data of appointment on double click?


1 Reply

PN Praveenkumar Narasimhanaidu Syncfusion Team October 26, 2021 02:14 PM UTC

Hi Bob, 
  
Greetings from Syncfusion support..! 
  
We have validated your reported query “How can I fetch data of appointment on double click” at our end and prepared a sample for your reference which can be viewed from following link. 


App.component.ts 
 public onEventRendered(args: EventRenderedArgs) { 
    // Adding the custom click event to the type "A" event 
    if (args.data.EventType === 'A') { 
      args.element.addEventListener('dblclick', this.customClick.bind(this)); 
    } 
  } 

  public customClick(args) { 
    // You can write a code for new functionality to event click here 
    if (args.detail === 2) { 
      console.log('Custom click event fires'); 
      const eventData = this.scheduleObj.getEventDetails(args.currentTarget); 
      console.log(eventData); 
    } 

Kindly try the above solution and get back to us if you need any further assistance. 

Regards, 
Praveenkumar 


Loader.
Up arrow icon