Our state of the art Gantt chart


Post by lfrontoura »

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!

Attachments
task_splitting.PNG
task_splitting.PNG (48.56 KiB) Viewed 1617 times

Post by fabio.mazza »

Hi Leandro, could you explain what task splitting method is it and how it works specifically on your example above to clarify?

Thank you.

Best regards,
Fabio


Post by lfrontoura »

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.


Post by fabio.mazza »

Leandro, please check if this post help you: viewtopic.php?f=52&t=13676

There is a feature request about segments.

Best regards,
Fabio


Post by lfrontoura »

Hi Fabio, thanks for the answer. Maybe its better if I go through parts: first, is it possible to please provide an example of the timespan split method in use? do you have its implementation example in some demo? thanks


Post by fabio.mazza »

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


Post by lfrontoura »

ok, I will follow it! In the meantime, do you know if there is a workaround, or some steps that could help me reproduce a segment like effect with the resources Gantt has in the moment? I would really apreciate that! thanks


Post by mats »

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/


Post by lfrontoura »

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.


Post by mats »

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.


Post Reply