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

Disable Delete & Edit Appointment

Thread ID:

Created:

Updated:

Platform:

Replies:

131516 Jul 14,2017 07:54 AM UTC Jul 17,2017 06:08 AM UTC JavaScript 1
loading
Tags: ejSchedule
Andrés
Asked On July 14, 2017 07:54 AM UTC

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.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On 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 




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;