Question
Is it possible to change TimeItemLayout in runtime ?
When I assign new layout:
gr.Layers[0].TimeItemLayout = “Span”; nothing happens.
Answer
Yes, go like this:
gr.Layers[0][x].TimeItemLayout = Gantt.TimeItemLayouts.GetFromName(“Span”);
where x is the timeItem index you want to change.
This code gr.Layers[0].TimeItemLayout = “Span”; changes the template used for this Layer when creating new time items.