New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

GanttAssignmentCollection Object

The following table lists the most important methods of the GanttAssignmentCollection client-side object:

NameParametersReturn TypeDescription
addTelerik.Web.UI.GanttAssignmentnoneAdds a resource assignment to the collection.
removeTelerik.Web.UI.GanttAssignmentnoneRemoves a resource assignment from the collection. See Example 1.
get_countnoneintReturns the number of resource assignments in the collection.
indexOfTelerik.Web.UI.GanttAssignmentintGets the index of a resource assignment.
getAssignmentintTelerik.Web.UI.GanttAssignmentGets the resource assignment from the collection residing at the index specified by the parameter.
toArraynonearrayReturns the collection represented as array.

 Example 1: Remove the resource assignment at index 5 from the Gantt's AssignmentCollection.

JavaScript
var gantt = $find("<%= RadGantt1.ClientID %>");
var collection = gantt.get_assignments(); 	
collection.remove(collection.getAssignment(5));	 

See Also

In this article
See Also
Not finding the help you need?
Contact Support