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

OnClientRequestEnd

The OnClientRequestEnd occurs when a response from the Web Service is received. The event is raised only when the Gantt is bound to a Web Service and is raised for every request sent to the service, including all CRUD operations on tasks, dependencies, resources and assignments.

The event is equivalent to the Kendo UI DataSource requestEnd 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_type returns the type of the request. Possible options are create, read, update and destroy.

  • get_response returns the raw remote service response.

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

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

See Also

In this article