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

GanttResourceCollection Object

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

NameParametersReturn TypeDescription
get_countnoneintReturns the number of resources in the collection.
indexOfTelerik.Web.UI.GanttResourceintGets the index of a resource.
getResourceintTelerik.Web.UI.GanttResourceGets the resource from the collection residing at the index specified by the parameter. See Example 1.
toArraynonearrayReturns the collection represented as array.

 Example 1: Get the resource at index 3 from the Gantt's ResourceCollection.

JavaScript
var gantt = $find("<%= RadGantt1.ClientID %>");
var collection = gantt.get_resources(); 	
var resource = collection.getResource(3);	 

See Also

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