RadiantQ Forum
Product => WPF Gantt Package => Topic started 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
-
Francesco,
We are looking on this, will update you soon.
-
Francesco,
Below code illustrates bringing a Flexy Gantt task into view.
// 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);
-
Great!
Thanks!
Francesco