This is a migrated thread and some comments may be shown as answers.

Date-dependencies in GanttView

1 Answer 56 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 19 Feb 2019, 01:38 PM

Dear support,

how can I implement date-dependencies in GanttView. That means

1. task2 depends on task1 (defined in "Dependencies")

2. if end-date of task1 changes for example from 31st of January to the 28th of February also the begin-date from task2 "automatically" has to change from 31st to 28th



Thanks in advance

Marcus

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 22 Feb 2019, 09:40 AM
Hello Marcus,

Currently what you are going for is not supported out of the box.

That said, I've prepared a sample application that demonstrates how to achieve the desired effect. Please find it attached.

What I did in the project is:
1) Create a custom gantt task - MyGanttTask.
    1.1) It holds the collection of the gantt tasks(DependenciesTo) that depend on the current MyGanttTask
    1.2) It handles the PropertyChanged and in the handler modifies the dependent MyGanttTasks when the End date of the current MyGanttTask changes.
2) Create the collection to use as our TasksSource (see SoftwarePlanning.cs) using MyGanttTasks and adding to each DependenciesTo collection with the correct MyGanttTasks.

Hopefully this helps and is suitable for your scenario.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GanttView
Asked by
Marcus
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or