Show loader when updating

2 posts, 1 answers
  1. Peter
    Peter avatar
    5 posts
    Member since:
    Mar 2015

    Posted 24 Mar 2015 Link to this post

    Is it possible to show a loader when an event is updated (Moved, resized or edit in the modal)?


    Thanks very much in advance

    /Peter 
  2. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2194 posts

    Posted 25 Mar 2015 Link to this post

    Hello Peter,


    You can use the scheduler dataSource "requestStart" / "requestEnd" events to toggle the Kendo UI progress as follows:

    function onRequestEnd(e) {
        var scheduler = $("#scheduler").getKendoScheduler();
        if (e.type == "update") {
            kendo.ui.progress(scheduler.element.find(".k-scheduler-content"), false);
        }
    }
     
    function onRequestStart(e) {
        var scheduler = $("#scheduler").getKendoScheduler();
        if (e.type == "update") {
            kendo.ui.progress(scheduler.element.find(".k-scheduler-content"), true);
        }
    }

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