Our state of the art Gantt chart


Post by beotech »

We would need to allow edition on parent task for columns effort, duration and custom, and then propagate the modification to the children.
Is there a way to unblock edition on parent tasks (we have already set these columns editor's property at true)?
Thanks


Post by pmiklashevich »

Hello,

Summary tasks are scheduled in Normal mode always. A summary task start date and end date should match the minimum start date and maximum end date of its children respectively (means duration is calculated). Its effort equals the sum of the effort values of all its children. Please check out this guide for details: https://www.bryntum.com/docs/gantt/#engine/gantt_events_scheduling.md

You can try to set manuallyScheduled true for the parent task to be able to change its duration, but that it against the scheduling logic. Whenever the parent duration is distributed to the children according to your logic, it's better to make it auto scheduled again to reflect its children changes.

Best,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post by beotech »

Hello,

Thanks a lot for your answer. Would it be also possible to reactivate column editor for parent task lines (like in columns name and startdate)?

Bests


Post by pmiklashevich »

Would it be also possible to reactivate column editor for parent task lines

Not possible to edit all cells for parent tasks. Effort is always calculated based on children. Duration is editable for parent tasks only when the task is manually scheduled. If you need a field to enter some value to distribute it to the children, you can adjust the TaskModel and introduce a new field (see the docs), your logic on change, and a new column to be able to show/edit the values.

class MyModel extends TaskModel {
    static get fields() {
        return [
            { name : 'effortToDistribute', type : 'number' },
            { name : 'durationToDistribute', type : 'number' }
        ];
    }
}

const project = new ProjectModel({
    taskModelClass : MyModel,
    .....

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply