Hello,
I'm trying to configure a set of user roles in my kendoUI scheduler. These roles depend on the result of a function that fires when the modal for a particular event is fired. I need to change the event handler on the "Save" button depending on the result of this function.
My current approach is adding an event to the save button as follows:
In my scheduler declaration:
edit: function(e) {
$(".k-scheduler-update").on('click', function () {
console.log("Click event on kendo update worked.");
});
}
I've tried this with a setTimeout, and in the change: endpoint of the scheduler API. How do I set up custom events on a save button of the scheduler modal after said modal has been opened and my user role function has been evaluated?