skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ColumnDefinition

This class represents a GanttView column definition. A collection of ColumnDefinitions is used for describing the tree-list part of the GanttView control.

Inheritance
System.Object
PlatformIndependentFreezable
ColumnDefinitionBase
ColumnDefinition
TreeColumnDefinition
Inherited Members
ColumnDefinitionBase.HeaderProperty
ColumnDefinitionBase.IsFrozenColumnProperty
ColumnDefinitionBase.ColumnWidthProperty
ColumnDefinitionBase.WidthProperty
ColumnDefinitionBase.GetSubItems()
ColumnDefinitionBase.OnPropertyChanged(PropertyChangedEventArgs)
ColumnDefinitionBase.OnPropertyChanged(String)
ColumnDefinitionBase.OnPropertyChanged<T>(Expression<Func<T>>)
ColumnDefinitionBase.Header
ColumnDefinitionBase.ColumnWidth
ColumnDefinitionBase.Width
ColumnDefinitionBase.IsFrozenColumn
ColumnDefinitionBase.IHierarchical.Children
ColumnDefinitionBase.PropertyChanged
PlatformIndependentFreezable.CreateInstanceCore()
Namespace: Telerik.Windows.Controls.GanttView
Assembly: Telerik.Windows.Controls.GanttView.dll

Syntax

public class ColumnDefinition : ColumnDefinitionBase, INotifyPropertyChanged, IHierarchical

Constructors

ColumnDefinition()

Declaration
public ColumnDefinition()

Fields

CellEditTemplateProperty

Identifies the CellEditTemplate dependency property.

Declaration
public static readonly DependencyProperty CellEditTemplateProperty
Field Value
System.Windows.DependencyProperty

CellHighlightTemplateProperty

Identifies the CellHighlightTemplate dependency property.

Declaration
public static readonly DependencyProperty CellHighlightTemplateProperty
Field Value
System.Windows.DependencyProperty

CellSelectionTemplateProperty

Identifies the CellSelectionTemplate dependency property.

Declaration
public static readonly DependencyProperty CellSelectionTemplateProperty
Field Value
System.Windows.DependencyProperty

CellTemplateProperty

Identifies the CellTemplate dependency property.

Declaration
public static readonly DependencyProperty CellTemplateProperty
Field Value
System.Windows.DependencyProperty

IsResizableProperty

Identifies the IsResizable dependency property.

Declaration
public static readonly DependencyProperty IsResizableProperty
Field Value
System.Windows.DependencyProperty

MaxWidthProperty

Identifies the MaxWidth dependency property.

Declaration
public static readonly DependencyProperty MaxWidthProperty
Field Value
System.Windows.DependencyProperty

MinWidthProperty

Identifies the MinWidth dependency property.

Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
System.Windows.DependencyProperty

Properties

CellEditTemplate

Gets or sets the template of the cells in this column when in Edit mode. If this template is not set, editing is not allowed in the corresponding column. This is a dependency property.

Declaration
public DataTemplate CellEditTemplate { get; set; }
Property Value
System.Windows.DataTemplate

Remarks

The DataContext of this template is the event in the given row.

CellHighlightTemplate

Gets or sets the template of the cells in this column when the mouse is over the cell. If this property is not set, the value of the CellTemplate is used. This is a dependency property.

Declaration
public DataTemplate CellHighlightTemplate { get; set; }
Property Value
System.Windows.DataTemplate

Remarks

Please notice that the DataContext of this template is not actually the event in the given row, but a Proxy object containing the following properties: Start, End, Title, FormattedValue, OriginalEvent. The OriginalEvent is the event in the row and the FormattedValue is the value extracted through the MemberBinding.

CellSelectionTemplate

Gets or sets the template of the cells in this column when the mouse is over the cell. If this property is not set, the value of the CellTemplate is used.

Declaration
public DataTemplate CellSelectionTemplate { get; set; }
Property Value
System.Windows.DataTemplate

Remarks

Please notice that the DataContext of this template is not actually the event in the given row, but a Proxy object containing the following properties: Start, End, Title, FormattedValue, OriginalEvent. The OriginalEvent is the event in the row and the FormattedValue is the value extracted through the MemberBinding.

CellTemplate

Gets or sets the template of the cells in this column when in normal state. If the CellHighlightTemplate or CellSelectionTemplate are not set, the selected or highlighted cells also use this template. This is a dependency property.

Declaration
public DataTemplate CellTemplate { get; set; }
Property Value
System.Windows.DataTemplate

Remarks

When this template is set the GanttView's rendering is slower than using directly the MemberBinding property, so consider carefully if you need to use this property or not. Please notice that the DataContext of this template is not actually the event in the given row, but a Proxy object containing the following properties: Start, End, Title, FormattedValue, OriginalEvent. The OriginalEvent is the event in the row and the FormattedValue is the value extracted through the MemberBinding. Use FormattedValue for best performance.

IsResizable

Gets or sets a value indicating whether the column can be resized through the column resizer or not.

Declaration
public bool IsResizable { get; set; }
Property Value
System.Boolean

MaxWidth

Gets or sets the maximum width of the column. The value of this property doesn't restrict the ColumnWidth property.

Declaration
public double MaxWidth { get; set; }
Property Value
System.Double

MemberBinding

Gets or sets the binding to be used to evaluate the Cell content.

Declaration
public Binding MemberBinding { get; set; }
Property Value
System.Windows.Data.Binding

MinWidth

Gets or sets the minimum width of the column. The value of this property doesn't restrict the ColumnWidth property.

Declaration
public double MinWidth { get; set; }
Property Value
System.Double

Methods

CreateInstanceOverride()

Declaration
protected override PlatformIndependentFreezable CreateInstanceOverride()
Returns
PlatformIndependentFreezable

Overrides
PlatformIndependentFreezable.CreateInstanceOverride()

GetDataContextForItemOverride(Object)

When overridden in the derived class this method determines which is the actual data item for the row for a given item from the list (in most cases an HierarchicalItem).

Declaration
protected virtual object GetDataContextForItemOverride(object itemData)
Parameters
System.Object itemData

The original item from the source collection. In most cases this is an HierarchicalItem.

Returns
System.Object

The item to be used as a data item for the cell, generated for this column for the given data item. The default implementation just extracts the SourceItem from the HierarchicalItem.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.