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.
Declaration
onAjaxError(args)Parameters
args.request-XMLHttpRequestobject for the failed request
Notes
Use this event to inspect the failed request and attach custom logging or error handling when callback communication with the server does not succeed.
Examples
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);
};
DayPilot