DayPilot.Scheduler.onAutoRefresh

Declaration

onAutoRefresh(args)

Parameters

  • args.i - ordinal number of this autorefresh call
  • args.preventDefault() - allows to cancel this autorefresh call

Notes

Fired before AutoRefresh is requested from the server side.

Applies to DayPilot Pro for ASP.NET WebForms, MVC, and Java.

Example

dp.onAutoRefresh = function(args) {
  if (dirty) {
    args.preventDefault();
  }
};