Disable default delete event on the icon and control it in Aurelia

Hi.I'm using Aurelia.On clicking the appointment i'm getting the Popover or Tooltip.In that i can see the delete and edit options.I want to control that click events in Aurelia.At the sametime i want disable the default click events on edit and delete.

1 Reply

NR Nevitha Ravi Syncfusion Team October 21, 2017 04:49 PM UTC

Hi Saravanan,  

Thank you for contacting Syncfusion Support. 

We have prepared a sample to prevent default actions of delete and edit button click on quick appointment window using create event which can be downloaded from the below location. 
http://www.syncfusion.com/downloads/support/directtrac/general/ze/schedule1413316413  

<ej-schedule id="Schedule1" e-width="100%" e-height="525px" e-current-date="04/03/2016"  e-appointment-settings.bind="AppointmentList" e-on-create.trigger="onCreate($event)"> 
</ej-schedule>   

onCreate(event) { 
let obj = $('#Schedule1').ejSchedule("instance"); 
obj._renderQuickWindow(); 
obj._off(obj._quickAppDetailsWindow.find('.e-scheduledelete'), "click"); // to prevent default delete action of appointments 
obj._off(obj._quickAppDetailsWindow.find('.e-editevent,.e-editfutureonly,.e-editseries'), "click"); //to prevent default edit options 
obj._on(obj._quickAppDetailsWindow.find('.e-scheduledelete'), "click"function (e) { 
// customize your own code here to perform delete actions 
}); 
obj._on(obj._quickAppDetailsWindow.find('.e-editevent,.e-editfutureonly,.e-editseries'), "click"function (e) { 
// customize your own code here to perform edit actions 
}); 
}  


Regards, 
Nevitha. 


Loader.
Up arrow icon