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);
});
});