DayPilot.Calendar.onAutoRefresh

Declaration

DayPilot.Calendar.onAutoRefresh(args)

Parameters

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

Notes

If auto refresh is enabled, this event is fired in intervals specified using autoRefreshInterval.

In ASP.NET WebForms, ASP.NET MVC and Java versions it's fired before the server side event.

Example

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