Completed
Last Updated: 20 Oct 2014 14:04 by ADMIN
ADMIN
Ralitsa
Created on: 08 Jul 2014 06:52
Category: GanttView
Type: Feature Request
0
IMPROVE. RadGanttView - improve the way to format the summary task when using the GraphicalViewItemFormatting event - see LeftElement, MiddleElement and RightElement of the GanttViewSummaryElement
Improve the way to format easily summary task. Currently you need to cast all elements of summary element to change the BackColor. 

Resolution: 
There are three properties added to GanttViewSummaryElement which allow access to the inner elements: LeftElement, MiddleElement and RightElement. 
Please take a look at the code example: 
private void radGanttView1_GraphicalViewItemFormatting(object sender, GanttViewGraphicalViewItemFormattingEventArgs e)
{
    GanttViewSummaryItemElement element = e.ItemElement as GanttViewSummaryItemElement;
    if (element != null)
    {
        GanttViewSummaryElement summary = element.TaskElement as GanttViewSummaryElement;
        summary.LeftElement.BackColor = Color.Blue;
        summary.RightElement.BackColor = Color.Blue;
        summary.MiddleElement.BackColor = Color.LightGreen;
        summary.ProgressIndicatorElement.BackColor = Color.Red;
    }
}
0 comments