Modifying the events attached to 'Save' button on scheduler modal

2 posts, 1 answers
  1. Andrew
    Andrew avatar
    21 posts
    Member since:
    Dec 2015

    Posted 14 Dec 2015 Link to this post



    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?

  2. Answer
    Vladimir Iliev
    Vladimir Iliev avatar
    2156 posts

    Posted 16 Dec 2015 Link to this post

    Hello Andrew,

    You can use the "save" event of the Scheduler which is triggered when the user clicks on the "Save" button. Additionally if you need to attach different event handler for each event you can attach it inside the "edit" event as follows:

    edit: function(e) {
        var event = e.event;"save", function() {

    Vladimir Iliev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top