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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.