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

Click/Touch event on iOS doesn't fire

Hi,
I have overridden the click event on the scheduler and it works fine on my desktop PC and MAC. But on the iPhone it ignores my script and displays the default appointment-window.

.ScheduleClientSideEvents(e => e.AppointmentClick("onAppointmentClick").CellClick("onCellClick")

function onAppointmentClick(args) {
        args.cancel = true;
       
        location.rel='nofollow' href = "/Schedule/AppointmentEdit/" + args.appointment.AppointmentId;              
    }
    function onCellClick(args) {
        args.cancel = true;

        var month = parseInt(args.startTime.getMonth()) + 1;

        location.rel='nofollow' href = "/Schedule/AppointmentCreate/";
    }

Any suggestions?

Thanks in advance.

Carsten

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team June 23, 2016 12:00 PM UTC

Hi Carsten,   
 
 Thank you for contacting Syncfusion support.   
 
 In Mobile device, when an appointment/cell is clicked - both the AppointmentClick/CellClick as well as AppointmentWindowOpen event will get triggered, which causes the Create Appointment Window to open. We request you to set args.cancel to true within the AppointmentWindowOpen event in order to prevent the display of default appointment window as shown below,  
<code>
.ScheduleClientSideEvents(evt => 
                    evt.AppointmentWindowOpen("onAppointmentWindowOpen"))
function onAppointmentWindowOpen(args) { 
            args.cancel = true;              
        }
</code>
Please let us know if you need any further assistance.
Regards,
Karthigeyan
 


Loader.
Live Chat Icon For mobile
Up arrow icon