Problem exporting to Excel columns with template

Hello,

I made an example reproducing my problem.
https://snippet.dhtmlx.com/yk8am5f2
I want to export to Excel some selected columns. But the one using a template is empty.
How can i do ?

Thanks

Hello,

Thanks for the attached snippet. In your case, you try to specify two columns from the text and predecessors properties of the tasks:

exportToExcel Gantt Docs ;

However, your task data doesn’t include a predecessors property. When using the template attribute in gantt.config.columns, you receive the formatted result, but this value only exists in Gantt’s context. To obtain the required predecessors value, you need to save it directly to the task.

Please check the modified example of your snippet:

https://snippet.dhtmlx.com/hssk7q5w

Understood, thanks !