RadiantQ WPF Gantt
Highlighting Latest Property Changes
Previous Topic  Next Topic 

Highlighting Latest Property Changes


Often a small change you might make in a task, in the gantt would affect multiple tasks because of dependencies and/or hierarchical relationships. In such cases, it helps to visualize the different properties that were affected by the latest user-operation.


To facilitate this, the GanttControl allows you to "record latest changes" in the gantt's Model. You can turn on this feature by setting this property:


            // To highlight the latest changes in the grid cells, set this property right after you set the ItemsSource.

            this.ganttControl.Model.RecordLatestPropertyChanges = true;


This will then make the GanttModel start recording and notifying changes as the user operates on the gantt. The GanttTable then listens to these notifications and highlights the properties that were changed due to the latest user operation.


After user connects Task ID 16 and Task ID 12, the affected properties are highlighted in the grid


Clearing Highlights


Some times you might want to clear the change-highlights, after Saving the changes, for example. Do this using this API:


            // To highlight the latest changes in the grid cells, set this property right after you set the ItemsSource.

            this.ganttControl.Model.ClearPropertyChangesCache();


Custom Columns


This feature also works because the gantt actually knows which columns corresponds to which bound data. But, when you define custom columns, the gantt would lose track of this and wouldn't be able to highlight the cells appropriately. You can overcome this by setting this extended property in your custom columns


            // Set this extended property on let the gantt know that you are using this specific column to bind to the activity's StartTime.

            <gantt:GanttTableTemplateColumn x:Key="startTimeColumnTemplate" Header="StartTime" gantt:GanttTableBase.BoundPropertyName ="Activity.StartTime">

...




� RadiantQ 2009 - 2019. All Rights Reserved.