PDF/PNG Export dialog
Hello,
I would like to know how to customise default values of this dialog, I want to set few columns as default and set page orientation to landscape,
Please let me know how to achieve this.
Thank you
Hello,
I would like to know how to customise default values of this dialog, I want to set few columns as default and set page orientation to landscape,
Please let me know how to achieve this.
Thank you
Hello.
We are working on export dialog customization at the moment: https://github.com/bryntum/support/issues/2052 It should be available soon.
To implement this in current version please refer to this thread, it contains couple possible solutions: viewtopic.php?p=90580#p90580
gantt.features.pdfExport.exportDialog.on({
show() {
console.log("log");
gantt.features.pdfExport.exportDialog.widgetMap.columnsField.value = ['name'] // array of column ids
}
});
I am using this solution but it is not working, even the consolo.log is not reached,
any help
Are there any exceptions logged to the console? Smth like cannot read propery "on" of undefined
? In the current release exportDialog does not exist before first showExportDialog
call. So first you have to show the dialog and then set up a listener, which would be triggered on the next show.
Overriding showExportDialog
should be move convenient.