There are 2 reasons why you could choose to have an EndTime field in your data source along with your Effort field.
a) You might want this EndTime information in some other context, not involving the gantt.
b) Help gantt's load time performance. This is especially helpful when you have long running tasks or a lot of tasks.
In this scenario you can simply bind your EndTime field to the gantt through the EndTimeBinding property. The gantt will then use this value while loading as well as keep this value updated as the user moves/resizes the task around.
|
$gantt_container.GanttControl({ ..................... ...... EffortBinding: new RadiantQ.BindingOptions("Effort"), EndTimeBinding: new RadiantQ.BindingOptions("EndTime"), .............. .... }); |
NOTE: When you do setup EndTimeBinding like this, if you adjust your project's schedule (to add holidays, for example), these EndTimes could become potentially invalid. So, make sure to get these EndTimes adjusted whenever the schedule changes.
This is also illustrated in the following sample that is part of our install: <install path>\Samples\TrackingEndTimeInDataSource.htm
© RadiantQ 2022. All Rights Reserved.