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

Circular Dependency Prevents Changing tasks.

1 Answer 62 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 23 Jul 2012, 11:31 PM
Hello,
I found a bug (almost comical) that prevents me from moving a task in the gantt chart.  I have tasks A,B,C,and D.  Task B is a child of task A.  Task B depends on task D (via a dependency arrow).  I would like to move task B from being the child of A to being the child of C.

When I do A.Children.Remove(B), I get a "key not found exception" in your code, which I assume means that it couldn't find the other end of the dependecy arrow from D to B.  In order words, I can't remove B because of the arrow.  However, if I do C.Children.Add(B), then I get a "element already exists".  In order words, I can't add B twice.  Conclusion: B cannot be moved without deleting all of its dependency arrows, and likely all arrows on other tasks that point to B.

In order words, B cannot be moved.

It would take too long (computationally) to find and delete all dependency arrows before moving the task, only to recreate them afterwards.  This problems relates to my other query about disabling grouping until all I finish changing the structure.

Thanks,
Eric

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 24 Jul 2012, 09:02 AM
Hi Erik,

Thank you for reporting this issue to us. We will investigate it further, but currently the only work-around I could suggest you is to set the TasksSource to null, make the changes and set it back.

Hope this helps.

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GanttView
Asked by
Eric
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or