Our state of the art Gantt chart


Post by Ayurchenkoi »

We can't export non-english symbols by the Gantt mspExport feature (in public example this also not working). How can we fix this problem (some settings in the export feature, for example)?

Thank you.


Post by arcady »

Thank you for the report! Here is a ticket for the problem: https://github.com/bryntum/support/issues/3235


Post by arcady »

As a quick workaround try overriding the feature export method like this:

MspExport.prototype.export = function(config = {}) {
    const me = this;

    if (me.disabled) {
        return;
    }

    config = ObjectHelper.assign({}, me.config, config);

    if (!config.filename) {
        config.filename = `${me.client.$$name}.xml`;
    }

    const
        data = me.generateExportData(config),
        xml  = me.convertToXml(data);

    BrowserHelper.download(config.filename, `data:text/xml;charset=utf-8,${encodeURIComponent(xml)}`);
};

Post by Ayurchenkoi »

Can you, please, provide a workaround example with TypesScript implementation (We can't find export for MspExport or what we can override in the config of export). Thank you.


Post by arcady »

The fixed version is already in nightlies and can be downloaded from the customerzone ..or simply wait for the upcoming release


Post Reply