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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Click/Touch event on iOS doesn't fire

Thread ID:

Created:

Updated:

Platform:

Replies:

124677 Jun 22,2016 09:08 AM UTC Jun 23,2016 12:00 PM UTC ASP.NET MVC 1
loading
Tags: Schedule
Carsten Buchmann
Asked On June 22, 2016 09:08 AM UTC

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

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


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;