RadiantQ jQuery Gantt Package
How to improve the performance of the Gantt while setting multiple options?
Previous Topic  Next Topic 

Changing some settings in the gantt could trigger expensive redraws of the gantt. In such cases it would be good if you can temporarily block redawing the gantt untill you have updated all the settings.


You can do so by sandwiching your settings code within the BeginUpdate and EndUpdate methods. This will prevent GanttChart from redrawing until the EndUpdate method is called. 


Code Example:


$Gantt.FlexyGantt("BeginUpdate");


$GanttChart.GanttChart('AnchorTime', anchorTime);//To change the anchortime.

$GanttChart.GanttChart('BaseTimeUnitWidth', baseTimeUnitWidth);//To change the baseTimeUnitWidth.

$GanttCart.GanttChart('ResizeToFit', resizeToFit);//To change the resizeToFit.


$Gantt.FlexyGantt("EndUpdate");



� RadiantQ 2022. All Rights Reserved.