I am trying to add a column on the fly to the gantt. If you do the following in your advanced example you will get an error:
change the code for complexity to alwaysWrite
{ name : 'complexity', type : 'number', alwaysWrite: 'true' }
Then add a column:
gantt.columns.add({text: 'Test', field: 'Custom_Test', id: 'Custom_Test'})
Then go make a change to the data on 1 item in that column
Then in the console do: gantt.project.changes.
Is there a way to resolve this issue? It appears that if you add a column that does not exist in the model then this happens. I cant seem to find a way to add/remove fields from a model. And should I need to add this to the model?