10386 : Is there a way, that you can save all your preferences of the GanttChart in a XML-File?

Question

Is there a way, that you can save all your preferences of the GanttChart in a XML-File?

So I want to setup a GanttChart, fill the grid on the left, move and add some TimeItems and then click “Save”.
When I click open, the whole GanttChart should be loaded, so that I can edit it.
(MS Project saves it as *.mpp for example).

Answer

There is no built in function to persist all data in a Gantt to a stream, but if you set up your data with databind you can persist the datasources and this is the prefered approach.

It would be a straight forward thing to do such a stream, just iterate all the GridNodes, and for each node all the GanttRows, and for each GanttRow, all Layers and for each Layer all the TimeItems, and for each time item, the time item texts and the time item links.

Maybe we will add this in the future as a good example of iteration, but currently you are regretfully on your own, sorry.

Leave a Reply