To reproduce: please run the sample project and follow the steps illustrated in the attached gif file. This shows how I’m attempting to add children to a root task. Upon adding a child task I am unable to scroll down to see the rest of the pre-existent root tasks until I first collapse and expand any visible root or child task.
Workaround:
public RadForm2()
{
InitializeComponent();
this.radGanttView1.ItemAdded += radGanttView1_ItemAdded;
}
private void radGanttView1_ItemAdded(object sender, Telerik.WinControls.UI.GanttViewItemAddedEventArgs e)
{
item = e.Item;
}
GanttViewDataItem item;
private void radButton1_Click(object sender, EventArgs e)
{
this.radGanttView1.GanttViewElement.InvalidateMeasure(true);
this.radGanttView1.GanttViewElement.UpdateLayout();
this.radGanttView1.GanttViewElement.GraphicalViewElement.Scroller.ScrollToItem(item);
}