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
close icon

Disable Delete & Edit Appointment

Hi, 

I'm trying to quit the "X" for delete and the "double click" for edit in the custom template of appointments. 

I saw the member "allowDelete" and "showQuickWindow" on the settings. I set this options on "false" but, doesn't works... 

¿How can I disable this functionality?

Thanks.

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team July 17, 2017 06:08 AM UTC

 
Thank you for contacting Syncfusion support. 
 
When an appointment is hovered and doubled clicked, appointmentHover and appointmentWindowOpen events will be triggered where appointment delete icon ‘x’ and edit window can be disabled.  
 
<Code> 
<script type="text/javascript"> 
    $(function () { 
        var dManager = ej.DataManager($.extend(true, [], window.Default)).executeLocal(ej.Query().take(10)); 
        $("#Schedule1").ejSchedule({ 
            width: "100%", 
            height: "525px", 
            currentDate: new Date(2017, 5, 5), 
            appointmentSettings: { 
                dataSource: dManager, 
                id: "Id", 
                subject: "Subject", 
                startTime: "StartTime", 
                endTime: "EndTime", 
                description: "Description", 
                allDay: "AllDay", 
                recurrence: "Recurrence", 
                recurrenceRule: "RecurrenceRule" 
            }, 
            appointmentHover:  function (args) 
            { 
                args.cancel=true; 
            }, 
            appointmentWindowOpen:  function (args) 
            { 
                args.cancel=true; 
            }, 
            create:  function onCreate(args) { 
                if (ej.isNullOrUndefined(this._alertWindow) && ej.isNullOrUndefined(this._recurEditWindow)) { 
                    this._renderRecurEditWindow(); 
                    this._renderAlertWindow(); 
                } 
                this._alertWindow.ejDialog({ beforeOpen: "onBeforeOpen" }); 
                this._recurEditWindow.ejDialog({ beforeOpen: "onBeforeOpen" }); 
            } 
        }); 
    }); 
    function onBeforeOpen(args) { // this function will disable the edit alert popup while double clicking the recurrence appointment 
        if(args.model.title=="Edit Repeat Appointment") 
            args.cancel=true; 
    } 
</script> 
</Code> 
 
Regards, 
Karthigeyan 




Loader.
Live Chat Icon For mobile
Up arrow icon