Is it possible use the mouse (drag and drop) to create a dependency on the gantt chart?
Hello estatemaster,
I`m not sure what is your final goal, but I would like to inform you that we still have not such kind functionality in our UltraGanttChart. Our GanttChart just represent the data that you provide to chart`s DataSource. Maybe you could used UltraGanttView control instead of GanttChart ? More details about UltraGanttView you could find at:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/WinGanttView.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/WinGanttView_Custom_Columns.html
Nevertheless, you could achieve desired funationality with GanttChart (of course it is very custom approach and maybe you may encounter some difficulties). You could handle FillSceneGraph event and using Primitive to drawn you custom dependency between two Tasks.
Let me know if you have any questions or if you think that I misunderstood your scenario.
Regards
Have you been able to resolve your issue ? If you still have any concerns or questions I will be glad to help. If you need any additional assistance don’t hesitate to ask.
If i want to create a dependency between the top task and the bottom task it creates a dependency between the top tasks and the middle tasks. Is there a way around this?
Before Dependency
After Dependency
I made some changes to your code and it seems to work the way i want now.
If i right click on the task after creating a predecessor i get this error.
Could you please give me the steps to reproduce this case.
Thanks
Here is a video of what i done
http://screencast.com/t/d0tJXOqk
Thanks there is no exception now.
Hi,
Thanks for the video. Could you please tr to extend the IF condition. For example:
if (newTask != startTask && newTask != null && startTask != null) newTask.Dependencies.Add(startTask, TaskDependencyType.FinishToStart);
Let me know if you have any questions.