Our state of the art Gantt chart


Post by Maxim Gorkovsky »

Hello.
Reproduced, ticket opened here: https://github.com/bryntum/support/issues/3969 Thank you for report.

For a temporary workaround you can try this override for a private method:

import Override from 'Core/mixin/Override.js';
Override.apply(class {
  static get target() {
    return { class : AggregateColumn }
  }

  getRawValue(record) {
    let value = 0;

    if (record.children) {
        const
            me       = this,
            fn       = me.function,
            isMathFn = typeof fn === 'string' && typeof Math[fn] === 'function',
            {
                handler,
                thisObj
            } = isMathFn ? {
                handler : Math[fn],
                thisObj : Math
            } : me.resolveCallback(fn);

        for (let i = 0, { length } = record.children; i < length; i++) {
            value = handler.call(thisObj, value, me.getRawValue(record.children[i]));
        }
        record[me.field] = value;
    }
    else {
        value = record[this.field];
    }
    return value;
  }
})

Post by jhughesoneplan »

This seems to have been fixed recently. However if a column is no visible then this does not work. This should work on any columns being used in the gantt.


Post by jhughesoneplan »

This does not seem to be working if the column is not in the view. Can we modify so it works for all columns being used in the gantt


Post by alex.l »

Could you please describe what do you mean "not in the view"? Filtered, not rendered, scrolled out?

All the best,
Alex


Post Reply