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

Definition

Namespace:Telerik.Web.UI

Inheritance: Telerik.Web.UI.GanttTaskCollection

Methods

Adds a task to the collection.

JS
add(Telerik.Web.UI.GanttTask task): void
Parameters:taskTelerik.Web.UI.GanttTask

The task to add.

Gets the number of tasks in the collection.

JS
get_count(): Number
Returns:

Number

The number of tasks

Gets the task from the collection residing at the index specified by the parameter.

JS
getTask(Number index): Telerik.Web.UI.GanttTask
Parameters:indexNumber

The index of the task that should be returned

Returns:

Telerik.Web.UI.GanttTask

The task at the specified index.

Gets the index of a task.

JS
indexOf(Telerik.Web.UI.GanttTask task): Number
Parameters:taskTelerik.Web.UI.GanttTask

The task to get the index of

Returns:

Number

The index of the specified task in the collection

Inserts a task into the collection at the position specified by the first (index) parameter.

JS
insert(Number index, Telerik.Web.UI.GanttTask task): void
Parameters:indexNumber

The index to insert at.

taskTelerik.Web.UI.GanttTask

The task to insert.

Removes a task from the collection.

JS
remove(Telerik.Web.UI.GanttTask task): void
Parameters:taskTelerik.Web.UI.GanttTask

The task to remove.

Returns the collection of tasks represented as array.

JS
toArray(): Array
Returns:

Array

array

Not finding the help you need?
Contact Support