RadiantQ Forum

Product => WPF Gantt Package => Topic started by: Francesco Fantoni on August 26, 2019, 09:38:45 PM

Title: Show off-screen Task
Post by: Francesco Fantoni on August 26, 2019, 09:38:45 PM
Hi,
 Is there a way to scroll gantt and show in the center of screen a task that is off-screen?
I'd like to ensure that a specific task is visibile on the screen, even it's out-of-bound.
I searched in the doc and in the samples but don't find nothing

Thanks
Francesco
Title: Re: Show off-screen Task
Post by: Rajagopal on August 28, 2019, 06:47:11 AM
Francesco,

We are looking on this, will update you soon.
Title: Re: Show off-screen Task
Post by: Rajagopal on August 28, 2019, 02:23:06 PM
Francesco,

Below code illustrates bringing a Flexy Gantt task into view.

Code: [Select]
// first task in fourth row comes into view
var fourthRow = this.fxgantt.FlatTreeItemsSource[3];
DateTime startTime = (fourthRow.Data as Employee).EmployeeTasks[0].StartTime;
this.fxgantt.FlexyTable.ScrollIntoView(fourthRow);
this.fxgantt.GanttChart.AnchorTime = startTime;
this.fxgantt.GanttChart.BringTimeIntoView(startTime);
Title: Re: Show off-screen Task
Post by: Francesco Fantoni on August 28, 2019, 06:34:45 PM
Great!
Thanks!
Francesco