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

GanttAssignment Object

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

NameParametersReturn TypeDescription
get_idnonestringGets the id of the assignment. See Example 1.
get_taskIdnonestringGets the id of the task.
get_resourceIdnonestringGets the id of the resource.
get_unitsnoneNumberGets the assigned units of the corresponding assignment. See Example 2.
set_unitsNumbernoneSets the assigned units of the corresponding assignment.

 Example 1: Get the id of the first assignment in the Gantt's AssignmentCollection.

JavaScript
var gantt = $find("<%= RadGantt1.ClientID %>");
var firstAssignment = gantt.get_assignments().getAssignment(0); 	
var id = firstAssignment.get_id();	 

 Example 2: Get the assigned units of the corresponding assignment.

JavaScript
var gantt = $find("<%= RadGantt1.ClientID %>");
var firstAssignment = gantt.get_assignments().getAssignment(0); 
var assignedUnits = firstAssignment.get_units();	 

See Also

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