Circular Dependency Prevents Changing tasks.

2 posts, 0 answers
  1. Eric
    Eric avatar
    48 posts
    Member since:
    Jul 2012

    Posted 23 Jul 2012 Link to this post

    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.

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Jul 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top