Our state of the art Gantt chart


Post by warkocz »

Hello,

When using Gantt and SchedulerPro to share the same project with tasks filtering (where Gantt displays only a subset of tasks while SchedulerPro shows all), sorting does not work on Gantt columns. Additionally, after dragging and dropping a task, you are unable to drag it again, encountering the following error:

TypeError: Cannot read properties of undefined (reading 'top')

The loaded data is flat. An example project is attached.

Attachments
gantt-schedulerpro.zip
(339.59 KiB) Downloaded 9 times

Post by mats »


Post by warkocz »

Nope but our setup is slightly different, we are filtering out some tasks from Gantt and showing all in the SchedulerPro:

        this.gantt = this.ganttComponent.instance;
        this.schedulerPro = this.schedulerProComponent.instance;
        this.schedulerPro.addPartner(this.gantt);
        this.gantt.project = this.project;
        //@ts-ignore
        this.gantt.store = this.project.taskStore.chainTree(rec=> rec.data.sch == true)

Post by tasnim »

Reproduced! Thanks for reporting. We'll investigate it. Here is the ticket to track progress https://github.com/bryntum/support/issues/11004

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post by johan.isaksson »

Hi,

The ticket was split into two, one for sorting that will likely be fixed in next patch (the ticket tasnim linked to above), and one for reordering the tasks (new one here https://github.com/bryntum/support/issues/11349).

Regarding reordering tasks in a chained store, I think we should probably block that. Since the order of records (and it might also only hold a subset of them) might differ between the chained store and the original, I cant see how it could reliably lead to a change in the original store. But input is very welcome, what would your expected outcome be?

Best regards,
Johan Isaksson

Post by warkocz »

Hi,

In my app, I have multiple "projects/work items," each with its own Gantt chart. I’d like to be able to display and manipulate tasks (including drag-and-drop reordering) for a current project.

However, in the SchedulerPro (or resource utilization view) below, I’d like to show tasks from all projects within a selected time period. This would allow project planners to easily see which resources are available and which are already assigned to tasks from current and other projects.

Kind regards,
Tomasz Warkocki


Post by johan.isaksson »

Hi,

Your use case is understood. I suppose the behavior can be made somewhat predictable in that scenario, but will have to think it through. Thanks for responding!

Best regards,
Johan Isaksson

Post by johan.isaksson »

I think I got a fix into place, please try again when next patch is out. Chaining a tree is a fairly new concept (released about half a year ago), so if you run into more bugs with it please let us know

Best regards,
Johan Isaksson

Post Reply