October 14, 2019, 08:49:09 AM

See more Support incidents in our old archived forum.

Author Topic: Show off-screen Task  (Read 98 times)

Francesco Fantoni

  • Customers
  • Newbie
  • *
  • Posts: 8
Show off-screen Task
« 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

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 114
Re: Show off-screen Task
« Reply #1 on: August 28, 2019, 06:47:11 AM »
Francesco,

We are looking on this, will update you soon.

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 114
Re: Show off-screen Task
« Reply #2 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);

Francesco Fantoni

  • Customers
  • Newbie
  • *
  • Posts: 8
Re: Show off-screen Task
« Reply #3 on: August 28, 2019, 06:34:45 PM »
Great!
Thanks!
Francesco