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

GanttDependency Object

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


Name Parameters Return Type Description
get_id none string Gets the id of the dependency. See Example 1.
get_predecessorId none string Gets the id of the predecessor task.
get_successorId none string Gets the id of the successor task.
get_type none Telerik.Web.UI.GanttDependencyType Gets the type of the dependency.

 Example 1: Get the id of the first dependency in the Gantt's DependencyCollection.

var gantt = $find("<%= RadGantt1.ClientID %>");
var firstDependency = gantt.get_dependencies().getDependency(0);    
var id = firstDependency.get_id();   

See Also

In this article