jQWidgets Forums

jQuery UI Widgets Forums Scheduler How to prevent overlapping appointments

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 7 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • dalsword
    Participant

    Hi;
    In my case, I need to prevent overlapping appointments for the same resourceId. What would be the best approach to check if newly created appointment and existing ones (stored in database) overlap? Particularly I am not sure how to handle where existing ones include recurrent appointments with exceptions.

    Thanks


    Hristo
    Participant

    Hello dalsword,

    The Scheduler could use a source of the DataAdapter with URL and on that way, you could make synchronization with the server.
    You should use your own logic to synchronize with the server.
    When a user adds new appointment the Scheduler create a unique ID for it.
    You could check this appointment’s ID by $('#scheduler').jqxScheduler('getAppointments');, you will receive an array with all appointments.
    After that could send to the database (with AJAX).
    You could bind to appointmentAdd event which is triggered when an appointment is added.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.