Refresh data in scheduler view every n minutes without user interaction

3 posts, 0 answers
  1. Anamika
    Anamika avatar
    150 posts
    Member since:
    Mar 2014

    Posted 15 Aug Link to this post

    Hello,

     

    I have a Kendo Scheduler bound to datatable dynamically. The user will have this view open whole day and would like to refresh the data in current view updated every 5/10 minutes as set in some Settings. The user do not Need to interact or refresh the page. Is there some property which i can use or any idea how to achieve a Server read automatically every n minutes and refresh current view.

     

    Thanks

     

    Anamika

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 16 Aug Link to this post

    Hello Anamika,

    You can call the Scheduler dataSource's read method every 5 or 10 min by using the setInterval method:
    function readData() {
        var scheduler = $("#scheduler").data("kendoScheduler");
      scheduler.dataSource.read();
      scheduler.view(scheduler.view().name)
    }
       
    (function(){
     setInterval(function (){ readData();}, 300000);
    })();

    Dojo example in which the read method is called every 5 minutes (300000 milliseconds).

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Anamika
    Anamika avatar
    150 posts
    Member since:
    Mar 2014

    Posted 17 Aug Link to this post

    Thanks Ivan

Back to Top