jQuery UI Widgets Forums Scheduler onAppointmentChange

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  loganstill 2 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • onAppointmentChange #97948

    loganstill
    Participant

    Is there a way to differentiate between whether an appointment has been drag & dropped or resized? I have backend code that handles the two differently

    onAppointmentChange #97959

    Stanislav
    Participant

    Hello loganstill,

    Can you please clarify a little bit more, what exactly do you want us to show you?

    Take a look at this demo, it shows’drag & drop’ and ‘resize’:
    https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxscheduler/scheduler-appointment-restrictions.htm?light
    jqxCheduler doesn’t have an event for nither of them, but you can use appointmentChange to get when something happend to the appointment.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    onAppointmentChange #97973

    loganstill
    Participant

    To rephrase my question: When an appointment has been changed, is it possible to tell if the change was a resize or a drag & drop? I’m implementing the onAppointmentChange event handler and actually have come up with a workable solution that calculates the duration of the target appointment and compares that to the original appointment (if both durations are the same, then it was not a resize). I can now distinguish between whether an appointment has been resized or dropped, but it would be nice if there was a way to distinguish this without calculations

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.