Completed
Last Updated: 05 Nov 2018 14:44 by Dimitar
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 23 Oct 2018 10:47
Category: GanttView
Type: Bug Report
1
FIX. RadGanttView - incorrect scrollbar's range after adding a child task
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);
        }
0 comments