The onAjaxError event handler fires when the server-side callback request fails.
This event applies to the ASP.NET WebForms, ASP.NET MVC, and Java editions.
onAjaxError(args)args.request - XMLHttpRequest object for the failed request
Use this event to inspect the failed request and attach custom logging or error handling when callback communication with the server does not succeed.
JavaScript
const scheduler = new DayPilot.Scheduler("dp", {
onAjaxError: (args) => {
console.log(args.request);
},
// ...
});
scheduler.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
onAjaxError: (args) => {
console.log(args.request);
},
// ...
};React
<DayPilotScheduler
onAjaxError={onAjaxError}
{/* ... */}
/>const onAjaxError = (args) => {
console.log(args.request);
};Vue
<DayPilotScheduler
@ajaxError="onAjaxError"
<!-- ... -->
/>const onAjaxError = (args) => {
console.log(args.request);
};