error

Triggered when an Ajax request for content fails.

Event Data

e.xhr jqXHR

The XHR request object as returned from jQuery.ajax.

e.status String

The status of the request as returned from jQuery.ajax.

Example - subscribing to the error event during initialization

<div id="dialog"></div>
<script>
$("#dialog").kendoWindow({
  error: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("Request failed with status " + e.status)
  }
});
</script>

Example - subscribing to the error event after initialization

<div id="dialog"></div>
<script>
function window_error(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("Request failed with status " + e.status)
}
$("#dialog").kendoWindow();
var dialog = $("#dialog").data("kendoWindow");
dialog.bind("error", window_error);
</script>
In this article