Page 2 of 2

Re: aggregate column not syncing

Posted: Thu Dec 30, 2021 4:18 pm
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;
  }
})

Re: aggregate column not syncing

Posted: Wed Aug 03, 2022 10:13 pm
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.


Re: aggregate column not syncing

Posted: Wed Aug 03, 2022 10:15 pm
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


Re: aggregate column not syncing

Posted: Fri Aug 05, 2022 2:25 pm
by alex.l

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