Hello
In the current implementation of RadGanttView the EndArrow is measured and arranged internally and its position is always drawn at the end of the Relation. When making these calculations the FromTask's position is taken into account and considered as the start of the Relation container, whilst the EndArrow is drawn at the end of the Relation container.
If I understand correctly - you are creating a custom IDependency that has a StartToFinish DependencyType and uses the FromTask as a ToTask. However, this implementation will not affect the way the Relation containers are drawn: logically, the FromTask might be used as a ToTask, but when the visual elements are drawn it will still be considered as the start of the Relation container. Unfortunately, this behavior cannot be changed.
If, when adding a GanttTask, you only have information about its ToTask, I suggest creating a custom IDependency but instead of changing the DependencyType, you can add an additional property - ToTask and populate it (as well as the FromTask property) when creating your TasksSource. Then you can use it to search for the correct GanttTask to relate to the newly added GanttTask.
Hope this helps and is suitable for your scenario.
Regards,
Polya
Telerik
,In the current implementation of RadGanttView the EndArrow is measured and arranged internally and its position is always drawn at the end of the Relation. When making these calculations the FromTask's position is taken into account and considered as the start of the Relation container, whilst the EndArrow is drawn at the end of the Relation container.
If I understand correctly - you are creating a custom IDependency that has a StartToFinish DependencyType and uses the FromTask as a ToTask. However, this implementation will not affect the way the Relation containers are drawn: logically, the FromTask might be used as a ToTask, but when the visual elements are drawn it will still be considered as the start of the Relation container. Unfortunately, this behavior cannot be changed.
If, when adding a GanttTask, you only have information about its ToTask, I suggest creating a custom IDependency but instead of changing the DependencyType, you can add an additional property - ToTask and populate it (as well as the FromTask property) when creating your TasksSource. Then you can use it to search for the correct GanttTask to relate to the newly added GanttTask.
Hope this helps and is suitable for your scenario.
Regards,
Polya
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items