windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-dot-updatesummaryprogress-x28-devexpress-dot-xtragantt-dot-ganttcontrolnode-x29.md
Updates the progress for all summary tasks in a tree branch that starts from the specified task.
Namespace : DevExpress.XtraGantt
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
public void UpdateSummaryProgress(
GanttControlNode node = null
)
Public Sub UpdateSummaryProgress(
node As GanttControlNode = Nothing
)
| Name | Type | Default | Description |
|---|---|---|---|
| node | GanttControlNode | null |
The summary task that is the root task in the branch that should be updated. If not specified, the method updates all the tasks in the project.
|
If the UpdateDependentTaskProgress option is enabled, the control automatically recalculates the progress when changes are made. For example, when a user modifies a particular task’s progress, the control updates the progress of all dependent tasks:
for a regular task — the control recalculates the progress for all summary tasks (the total progress).
for a summary task (the total progress) — the control recalculates the progress for all sub-tasks and parent summary tasks.
The CustomTaskProgress event fires when the control recalculated a dependent task’s progress. You can handle this event to specify a custom value.
If the UpdateDependentTaskProgress option is disabled or if you updated progress in the data source, the control does not update progress in dependent tasks. You can call the UpdateSummaryProgress method to update progress for all summary tasks in a tree branch that starts from the specified task. If the summary task is not specified, the method updates all tasks in the project.
See Task Progress for more information.
See Also