Scrool gantt to a specific date

Hi,

how can i scrool the gantt to a specific date?
IN attached a sample.

Best regards
Gian Piero Truccolo

Attachment: ScrollGanttToSpeificDate_c5b71beb.zip

1 Reply 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team May 6, 2021 10:33 AM UTC

Hi Gian Piero Truccolo, 
  
Greeting from Syncfusion. 
  
We can be able to reproduce the reported problem in provided sample and would like to inform that, it occurs due to the ScrollGanttChartTo method get called before the GanttSchedule get updated completely. So, we can overcome this problem by delaying the ScrollGanttChartTo method call as like below snippet. 
  
private async void GenerateGantt_Click(object sender, RoutedEventArgs e) 
{ 
    view.GenerateGantt(); 
    await Task.Delay(1); 
    this.Gantt.ScrollGanttChartTo(new DateTime(2021,05,04)); 
} 
  
Please let us know if you have any queries. 
  
Regards, 
Sridevi S. 


Marked as answer
Loader.
Up arrow icon