New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

OnClientRequestFailed

The OnClientRequestFailed occurs when a request to the remote service fails. The event is raised only when the Gantt is bound to a Web Service and is raised for every failed request sent to the service, including all CRUD operations on tasks, dependencies, resources and assignments.

The event is equivalent to the Kendo UI DataSource error event.

The event handler receives two parameters:

  1. The instance of the Gantt control firing the event.

  2. An eventArgs parameter containing the following methods:

  • get_errorThrown returns the exception if there is such.

  • get_status returns a string describing the type of the error.

  • get_xhr returns the current jqXHR.

  • get_sender returns the data source instance which fired the event.

<telerik:RadGantt RenderMode="Lightweight" runat="server" id="RadGantt1" OnClientRequestFailed="OnClientRequestFailed">
</telerik:RadGantt>
function OnClientRequestFailed(sender, eventArgs) {
    var status = eventArgs.get_status();
}

See Also

In this article