Hi! Is there any example provided in the documentation or demo where I can see how the task splitting method works? I would like to split a task in more than 2 segments and give each of them a different color and date, like in the image attached. Thanks in advance!
Support Forum
Hi Fabio,
I've seen posts about task splitting (I am assuming this is the method: https://www.bryntum.com/docs/gantt/#Scheduler/model/TimeSpan), in which the advanced demo is reffered, but I couldnt find any example in which this is applied so far. I would like to split a task in segments like the picture I sent. So, the first line in the pic, for example, would be a single task which is divided in 3 segments. one taking weeks 5 and 6, another taking week 7 e finally the last segment taking week 8, 9 and 10. So each segment would have different start and end dates and also, if possible, different colors and names.
Leandro, please check if this post help you: viewtopic.php?f=52&t=13676
There is a feature request about segments.
Best regards,
Fabio
Hi Leandro, as mentioned on that post, this feature wasn't implemented yet for Bryntum Gantt, it exists only on Ext Gantt. That method on documentation is a different thing what you can test here when you mouse over the event and then click on scissor icon, it will split the event in 2 pieces. Here is the feature request number to you follow about the gantt task split: https://github.com/bryntum/support/issues/1557
Best regards,
Fabio
It will not be trivial I'm afraid as you'd need to handle resizing, drag drop too etc. If you need this feature urgently we also offer feature sponsorship: https://www.bryntum.com/services/
Hi Mats, thanks for your answer. I dont really need any interaction like, drag-drop or resizing from the user. I just wanted to update the segments position in the task row with data I get from an object (namely their respective startDate and endDate). Do you think, taking out the interaction would reduce complexity considerably? If so, a place to start would be very helpful. cheers.
Yes then you really could do it using the https://bryntum.com/docs/gantt/#Gantt/view/GanttBase#config-taskRenderer and outputting child elements based on your segmented data.