Our state of the art Gantt chart


Post by methode »

Hello,

I'm referring to this past post:

viewtopic.php?f=52&t=18027

The code to customize the values displayed in the list of Predecessor - successor - tasks seems to not working anymore. I am on 4.3.0 version.

I tested with the Angular / taskeditor project taken from examples.
Can you please check the attached example and confirm?
Have a look at app.config.ts.

Thank you a lot

Attachments
taskeditor.zip
(957 KiB) Downloaded 47 times

Post by Maxim Gorkovsky »

Hello.
You're right, there was a regression in config flexibility. I opened a ticket: https://github.com/bryntum/support/issues/3628
Until this is fixed you will have to change item template in runtime:

listeners : {
    paint({ source }) {
        source.store.sorters = [{
            field     : 'wbsCode',
            ascending : true
        }];
        source.listItemTpl = record => {
            return `${record.wbsCode} - ${record.name}`;
        };
    }
}

Post by methode »

Hi Maxim,

ok, I see. Thanks for the fix


Post Reply