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
Assign the handler to the client object generated by your ASP.NET or Java control. In this example, dp is that generated Scheduler instance.
JavaScript (server-integrated control)
dp.onAjaxError = function(args) {
console.error("Server callback failed:", args.request.status);
};This server-callback handler is outside the standalone JavaScript configuration and its Angular, React and Vue wrappers.
DayPilot