New to Telerik UI for WinFormsStart a free 30-day trial

GraphicalView Item Formatting

Updated over 6 months ago

The GraphicalViewItemFormatting event allows you to change the style and looks of the items displayed in the graphical view. The following example demonstrates how to format all tasks that involve some selection e.g. their title starts with "Select".

C#
private void radGanttView1_GraphicalViewItemFormatting(object sender, GanttViewGraphicalViewItemFormattingEventArgs e)
{
    if (e.Item.Title.StartsWith("Select"))
    {
        e.ItemElement.TaskElement.BackColor = Color.Lime;
    }
    else
    {
        e.ItemElement.TaskElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local);
    }
}

WinForms RadGanttView GraphicalView Item Formatting

See Also

In this article
See Also
Not finding the help you need?
Contact Support