New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Web Service Binding
The following article demonstrates how to bind the RadGantt to WebService with Resources.
You can easily implement the WebService binding of the RadGantt with enabled Resources,by extending the typical WebService binding scenario with the additional methods, needed for the Resources and Assignments operations. For more information on the standard WebService binding of the RadGantt with GanttProvider could be found in the WebService documentation article.
The following example demonstrates how to extend the WebService, in order to implement the Resources.
Example 1
C#
[WebMethod(EnableSession = true)]
public IEnumerable<Telerik.Web.UI.Gantt.ResourceData> GetResources()
{
return Controller.GetResources();
}
[WebMethod(EnableSession = true)]
public IEnumerable<AssignmentData> GetAssignments()
{
return Controller.GetAssignments();
}
[WebMethod(EnableSession = true)]
public IEnumerable<AssignmentData> InsertAssignments(IEnumerable<AssignmentData> models)
{
return Controller.InsertAssignments(models);
}
[WebMethod(EnableSession = true)]
public IEnumerable<AssignmentData> DeleteAssignments(IEnumerable<AssignmentData> models)
{
return Controller.DeleteAssignments(models);
}