The onAjaxError event handler fires when a server-side callback request fails.
This event applies to the ASP.NET WebForms, ASP.NET MVC, and Java editions.
DayPilot.Calendar.onAjaxError(args)
args.request - XMLHttpRequest object for the failed request
const calendar = new DayPilot.Calendar("dp", {
onAjaxError: args => {
console.log(args.request);
},
// ...
});
calendar.init();
<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
onAjaxError: args => {
console.log(args.request);
},
// ...
};
<DayPilotCalendar
onAjaxError={args => {
console.log(args.request);
}}
{/* ... */}
/>
<DayPilotCalendar @ajaxError="onAjaxError" <!-- ... --> />
const onAjaxError = args => {
console.log(args.request);
};