RadiantQ jQuery Gantt Package
How to bring a task into view in the gantt chart?
Previous Topic  Next Topic 

Sometime we need a situation to bring the task/time in to view using a button click or some DOM events, to do that RadiantQ Gantt provide a method called BringTimeIntoView in GanttChart this method is common for both Project and FlexyGantt.


Here is the some example code.


//To get hold of GanttContol. For flexyGantt get the pass the "FlexyGantt" as data argument.

var gantt = $gantt_container.data("GanttControl");

//To get the Ganttchart instance.

var ganttChart = gantt.GetGanttChart().data("GanttChart");

//Task StartTime which we want to bring into view (i.e this is an example)

var taskstart = gantt.options.DataSource[0].StartTime;

//To bring the task into view using it's start time.

ganttChart.BringTimeIntoView(taskstart);














� RadiantQ 2022. All Rights Reserved.