jQuery UI Widgets Forums Scheduler renderAppointment after update appointment

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 7 years, 10 months ago.

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

  • crissi
    Participant

    Hello!

    The renderAppointment works fine for initializing the scheduler, but it’s not fireing after updating an appointment.
    After adding/editing appointment I receive addidional information from my database, afterwards I do a $(“#scheduler”).jqxScheduler(‘beginAppointmentsUpdate’);
    //…
    $(“#scheduler”).jqxScheduler(‘endAppointmentsUpdate’);
    but the custum rendering isn’t running…

    Thanks!


    Hristo
    Participant

    Hello crissi,

    I tested the example below and it seems to work fine.
    https://www.jseditor.io/?key=jqxscheduler-renderappointment-property
    Could you give us more details, how to reproduce it?

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com


    crissi
    Participant

    Hello!

    Within the $(“#scheduler”).jqxScheduler({ … }); I have the renderAppointment: function(data) {…}, which works fine during loading the data.

    In the “$(“#scheduler”).on(‘appointmentDelete’, function (event) {..}); and also in the “appointmentAdd” and “appointmentChange” -Functions I have a function, that is fireing an mysql update for the selected event. This update return a new value, what I put into the appointment-data with $(“#scheduler”).jqxScheduler(‘beginAppointmentsUpdate’);.
    After the setAppointmentProperty i do a $(“#scheduler”).jqxScheduler(‘endAppointmentsUpdate’); and then the renderAppointment: function(data) {…} is not firing.
    Should there be done a manual refresh or something similar?

    Thanks!


    Hristo
    Participant

    Hello Chris,

    Thank you for the feedback. We will investigate this.
    I would suggest you as an alternative for now – use deleteAppointment method and then addAppointment with all (old and changed data) settings.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.