Hello
Please suggest me the way to implement Split tasks, Link and Unlink Tasks in winganttview as if in Microsoft Project,
jeni
Hello,
Could you please clarify your requirements in details? How do you want to split the tasks? And link and unlink them to what? An example might help.
Thank you in advance!
Hello Boris
Please find the following which I need to implement in button click on ribbon.
Link Tasks : select two or more tasks from the Ganttview, so they are linked together (Finish to Start) in the order of their selection.
Unlink Tasks : Undo the previous link
Split Tasks : Suppose a task has a duration of 3 days, split button acts as a pointer with which you click on the timeline bar to split into two pieces on each click, which is connected with a dotted line. moves one day forward on each click.
Also is there any particular way to ignore Saturdays and Sundays from the winganttview timeline?
Thanks in advance.
Hello Jeni,
jeni said:Link Tasks : select two or more tasks from the Ganttview, so they are linked together (Finish to Start) in the order of their selection. Unlink Tasks : Undo the previous link
Maybe one possible approach to achieve desired behavior could be, if you implement code to create your TaskDependecy. I made similar sample where I`m using the mouse and right mouse button to link different Tasks. Please take a look at the attached sample and video file in that forum thread: http://es.infragistics.com/community/forums/t/70619.aspx
jeni said: Split Tasks : Suppose a task has a duration of 3 days, split button acts as a pointer with which you click on the timeline bar to split into two pieces on each click, which is connected with a dotted line. moves one day forward on each click.
Maybe one possible approach could be if you create a new Task with desired StartDate and Duration and modify Duration of your original task. It is the easier part of our task. The difficult part is to determinate the right StartDate of our new Task. It is depend of our mouse possition in the Timeline area and current TimeSlotUIElement. So we could use the code:
TimeSlotUIElement slot = ultraGanttView1.UIElement.ElementFromPoint(new Point(MousePosition.X - this.Location.X, MousePosition.Y - this.Location.Y)) as TimeSlotUIElement;
By this way we could get the StartDate for our new Task.
Let me know if you have any questions.
Regards