error

Triggered when the AJAX request that fetches a pane content has failed.

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 - subscribe to the "error" event during initialization

<div id="splitter">
  <div>Pane A</div>
  <div>Pane B</div>
</div>
<script>
$("#splitter").kendoSplitter({
  error: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(
        "Pane #" + $(e.pane).index() + " could not be loaded from server" +
        " (status " + e.xhr.status + ")"
    );
  }
});
</script>

Example - subscribe to the "error" event after initialization

<div id="splitter">
  <div>Pane A</div>
  <div>Pane B</div>
</div>
<script>
function splitter_error(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(
        "Pane #" + $(e.pane).index() + " could not be loaded from server" +
        " (status " + e.xhr.status + ")"
    );
}
$("#splitter").kendoSplitter();
var splitter = $("#splitter").data("kendoSplitter");
splitter.bind("error", splitter_error);
</script>
In this article