Premium support for our pure JavaScript UI components


Post by dpontes »

Hello Bryntum Team!

We will need to support percentBar soon and I was wondering if Bryntum supports a single Picker for Parent events?

I see that whenever I have the NestedEvents feature enabled, each child event has its own percentBar picker, and the ParentEvent bar is represented by the combination of all its child progress.

Is it possible to instead have a single percentage picker controlled by the Parent event?

The reason why this is important is because in our case we don't give user permission to interact with Child/Nested events.

We actually current have a directive to prevent any sort of pointer-events on them. Like this suggestion here: viewtopic.php?p=118344&hilit=prevent+nested+events+drag#p118344


Post by alex.l »

Hi there,

To make percentDone editable for parent, please switch https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#field-autoCalculatePercentDoneForParentTasks

Flag children as https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#field-readOnly if you want to forbid interaction, it will hide percentDone handle too.

All the best,
Alex


Post by dpontes »

Hi Alex, I tried your suggestion and it seems that with that flag set to false the Parent Event indeed stop showing a progress bar.

Though that doesn't give me the ability to change the parent event progress directly?

I've applied the configuration change to this example: https://bryntum.com/products/schedulerpro/examples/nested-events/

For me, I can only see still the dragging picker to change the percentage in the child events. I couldn't find any element in the UI allowing change the percentage of the parent.


Post by mats »

Probably needs a little tweak of the PercentBar feature, as it currently doesn't allow this. https://github.com/bryntum/support/issues/8610


Post Reply