0

I'm trying to build a monitoring page for a Telerik Scheduler in MVC and trying to refresh the page every minute. I can-do a reload() every minute but was hoping for a more elegant solution. I'm trying the following code in javascript However I don't see the time-bar updating.

  setInterval(function () {

    var scheduler = $("#ReservationsTimeLine").data("kendoScheduler");

    var start = Date.now();
    var end = start + 2 * 60 * 60 * 1000;

    scheduler.startDate = start;
    scheduler.endDate = end;
    scheduler.dataSource.read();
    scheduler.refresh();

  }, 60000);    //1 minute
ekad
  • 14,436
  • 26
  • 44
  • 46

1 Answers1

0

You can find a list of elegant solutions to your problem in here.

I'm not sure what 'time-bar' means but I've noticed that your code refreshes only the scheduler, not the page.

Community
  • 1
  • 1
rozerocool
  • 160
  • 2
  • 8