jQWidgets Forums

jQuery UI Widgets Forums Scheduler Appointment add

This topic contains 2 replies, has 2 voices, and was last updated by  cristian.mendoza 8 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Appointment add #87551

    cristian.mendoza
    Participant

    Good morning, i’d like to know if there is a way to validate when i’m adding a new appointment. I want to include the validate plugin but even so the appointment is added. I want to restrict that.

    Appointment add #87567

    admin
    Keymaster

    Hi Cristian,

    Here is a Scheduler demo which shows how to customize this widget’s dialog: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxscheduler/scheduler-edit-dialog.htm?light with additional features and functionalities.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Appointment add #87602

    cristian.mendoza
    Participant

    In the example there is a way to add a custom button, maybe i can replace the default save function. But the custom button doesn’t take “event.args.appointment”, where all the info the user has introduced is.

    $(‘#scheduler’).on(‘editDialogCreate’, function (event) {
    var args = event.args;
    var dialog = args.dialog;
    var fields = args.fields;
    var appointment = args.appointment;

    saveButton = $(“<button style=’margin-left: 5px; float:right;’>Save</button>”);
    console.log(fields.buttons);
    fields.buttons.append(saveButton);
    console.log(fields.buttons);
    saveButton.jqxButton({ theme: this.theme });

    saveButton.click(function () {
    /**
    * In this part the appointment is null, because is taking the object when the dialog was created
    */
    console.log(appointment);
    });
    });

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

You must be logged in to reply to this topic.