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

GanttDependencyCollection Object

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

 

NameParametersReturn TypeDescription
addTelerik.Web.UI.GanttDependencynoneAdds a dependency to the collection.
removeTelerik.Web.UI.GanttDependencynoneRemoves a dependency from the collection. See Example 1.
get_countnoneintReturns the number of dependencies in the collection.
indexOfTelerik.Web.UI.GanttDependencyintGets the index of a dependency.
getDependencyintTelerik.Web.UI.GanttDependencyGets the dependency from the collection residing at the index specified by the parameter.
toArraynonearrayReturns the collection represented as array.

 Example 1: Remove the dependency at index 5 from the Gantt's DependencyCollection.

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

See Also

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