DayPilot.Scheduler.onAutoRefresh

Declaration

onAutoRefresh(args)

Parameters

  • args.i - oridnal 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();
  }
};
    

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java