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

Task

In this help article you can find helpful information on the different types of RadGantt tasks, their properties and methods.

Task Types

Depending on the TaskType property, the Task can be one of three types:

  • Regular Task - regular task which can have assigned resources, links to predecessors, start date, end date,duration and percentage of completion.

  • Summary - a grouping of child tasks. The Summary has a Start and End determined by the earliest Start and latest End of its child tasks. The percentage of completion is calculated based on the percentage of each child task. The Summary does not have links to predecessors, and can not be referenced as such by other tasks.

  • Milestone - a regular task with zero duration.

Task Properties

The table below demonstrates some general properties of the Task object.

NameTypeDescription
DependenciesTelerik.Web.UI.Gantt.DependencyCollectionGets a collection of dependencies to other tasks.
DescriptionstringGets or sets the task description.
DurationTimeSpanGets a value indicating the duration of the task.
EndDateTimeGets or sets the end time of the task.
ExpandedboolGets or sets a value that determines whether the tasks is expanded in the TreeList.
IDobjectGets or sets Task ID.
OrderIDobjectGets or sets OrderID field used by sort operations.
OwnerTelerik.Web.UI.Gantt.IGanttGets or sets the Gantt that is owner of the task.
ParentIDobjectGets or sets pointer to the parent task using its ID.
PercentCompletedecimalGets a value in percent indicating the task completion.
PredecessorsTelerik.Web.UI.Gantt.DependencyCollectionGets a collection of the dependencies that are predecessors of the task.
StartDateTimeGets or sets the start time of the task.
SuccessorsTelerik.Web.UI.Gantt.DependencyCollectionGets a collection of the dependencies that are successors of the task.
SummaryboolGets a boolean value indicating whether the task is a summary task.
TasksTelerik.Web.UI.Gantt.TaskCollectionGets all children tasks of the current task.
TaskTypeTelerik.Web.UI.Gantt.TaskType enumerationGets a value that determines the type of the task.
TitlestringGets or sets a value that determines the title of the task.

Task Methods

The table below shows the publicly accessible methods of the Task object.

MethodParametersReturn typeDescription
GetDatanoneSystem.Collections.Specialized.IOrderedDictionaryReturns the Task data as an OrdrederDictionary.
LoadFromDictionarySystem.Collections.IDictionaryvoidLoads the Task data from a Dictionary.

See Also