Our state of the art Gantt chart


Post by carmengreisinger »

Hi,

if you add a sub node, the update event is called for the parent node, indicating that the isLeaf property is updated to 'true'.

The event is not called if:

  • you indent a node and the node has been a leaf before
  • you remove all child nodes from a parent

Is this by design?

Thanks
Carmen


Post by mats »

Agree, this is a bit inconsistent - thanks for reporting it. We'll discuss it internally and you can track this issue for updates: https://github.com/bryntum/support/issues/4702


Post by carmengreisinger »

Hi,

same for isParent property which doesn't trigger any event. Even I think the isParent property is duplicate information, because if it's not a parent, it's a leaf node, isn't it?

Thanks,
Carmen


Post by mats »

Just there as sugar in case you prefer, information isn't duplicated:

 get isParent() {
        return !this.isLeaf;
    }

Post by carmengreisinger »

Got it. :-)

Generally, do you have some explanation when the update event should be called and for what records? I struggle to get the logic.

For example:
If you ident a node, the child level of the node is increased. But the update event is not triggered for the parent node.

Thanks,
Carmen

Last edited by carmengreisinger on Tue May 31, 2022 4:03 pm, edited 1 time in total.

Post by mats »

There's no logic behind it, it's a bug (see ticket above) and we hope to fix it soon!


Post by carmengreisinger »

Ok, thanks!


Post Reply