RadiantQ WPF Gantt
EndTime field with Effort field
Previous Topic  Next Topic 

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, along with the EffortBinding, 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:GanttControl x:Name="ganttControl" Grid.Column="1" IDBinding="{Binding TaskID, Mode=TwoWay}"

                           EffortBinding="{Binding Effort, Mode=TwoWay}"   

                           EndTimeBinding="{Binding EndTime, Mode=TwoWay}"

                       ....................      

                           >           

        </gantt:GanttControl>


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\ProjectGantt\Misc\TrackingEndTimeInDataSource




� RadiantQ 2009 - 2019. All Rights Reserved.