Premium support for our pure JavaScript UI components


Post by fdyrs »

Hi,

When a plan have conflicting constraints on two activities (parent -10334 and child 289249), the scheduling conflict dialog appears, but does not trigger any of the change events when an option is applied.

I am using the advanced example, and added a change listener with a debugger to test.

transport: {
  load: {
    url: '../_datasets/testing.json'
  }
},
listeners: {
  change(e) {
    debugger; // Does not hit debugger when scheduling conflict is resolved.
  }
},

Plan in JSON format is attached.

Attachments
Capture3.PNG
Capture3.PNG (101.06 KiB) Viewed 288 times
testing.json
(54.23 KiB) Downloaded 40 times

Post by johan.isaksson »

Hi,

By default the initial round of calculations when loading a project is silent, to avoid excessive event triggering from normalizing large projects. This also silences conflict resolutions.

You could try configuring the project with silenceInitialCommit : false if you want the events to trigger, but it might get noisy (https://bryntum.com/docs/gantt/api/Gantt/model/ProjectModel#config-silenceInitialCommit).

Best regards,
Johan Isaksson

Post by arcady »

That's worth a ticket. :) Here it is: https://github.com/bryntum/support/issues/5181
Thank you for the report!


Post Reply