skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    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 GanttViewDataItem

Represents the data item RadGanttView uses to represent the data it is displaying.

Inheritance
System.Object
DisposableObject
RadObject
GanttViewDataItem
Inherited Members
RadObject.BindingContextProperty
RadObject.RadType
RadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)
RadObject.DisposeManagedResources()
RadObject.ClearPropertyStore()
RadObject.SuspendPropertyNotifications()
RadObject.ResumePropertyNotifications()
RadObject.GetPropertyValue(RadProperty)
RadObject.SetDefaultValueOverride(RadProperty, Object)
RadObject.SetValueAtDesignTime(RadProperty, Object)
RadObject.GetValue(RadProperty)
RadObject.SetValue(RadProperty, Object)
RadObject.ResetValue(RadProperty)
RadObject.ResetLocalValue(RadProperty)
RadObject.ResetValue(RadProperty, ValueResetFlags)
RadObject.UpdateValue(RadProperty)
RadObject.GetValueSource(RadProperty)
RadObject.GetRegisteredRadProperty(String)
RadObject.UpdateValueCore(RadPropertyValue)
RadObject.SetValueCore(RadPropertyValue, Object, Object, ValueSource)
RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)
RadObject.GetDefaultValue(RadPropertyValue, Object)
RadObject.CoerceValue(RadPropertyValue, Object)
RadObject.ShouldSerializeProperty(PropertyDescriptor)
RadObject.ShouldSerializeProperty(RadProperty)
RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)
RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)
RadObject.UnbindProperty(RadProperty)
RadObject.AddStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(RadProperty)
RadObject.GetInheritedValue(RadProperty)
RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)
RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)
RadObject.OnNotifyPropertyChanged(String)
RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)
RadObject.IsPropertyCancelable(RadPropertyMetadata)
RadObject.PropertyValues
RadObject.IsDesignMode
RadObject.PropertyFilter
RadObject.RadObjectType
RadObject.BindingContext
RadObject.PropertyChanged
RadObject.RadPropertyChanged
RadObject.RadPropertyChanging
RadObject.ShouldSerializePropertyHandler
DisposableObject.GetBitState(Int64)
DisposableObject.SetBitState(Int64, Boolean)
DisposableObject.OnBitStateChanged(Int64, Boolean, Boolean)
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.PerformDispose(Boolean)
DisposableObject.DisposeUnmanagedResources()
DisposableObject.BitState
DisposableObject.Events
DisposableObject.IsDisposing
DisposableObject.IsDisposed
DisposableObject.Disposed
DisposableObject.Disposing
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public class GanttViewDataItem : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IDataItem

Constructors

GanttViewDataItem()

Initializes a new instance of the GanttViewDataItem class.

Declaration
public GanttViewDataItem()

Fields

CurrentProperty

Declaration
public static RadProperty CurrentProperty
Field Value
RadProperty

EnabledProperty

Declaration
public static RadProperty EnabledProperty
Field Value
RadProperty

IsAllowDropState

Declaration
protected const int IsAllowDropState = 4
Field Value
System.Int32

IsExpandedState

Declaration
protected const int IsExpandedState = 2
Field Value
System.Int32

IsMouseOverProperty

Declaration
public static RadProperty IsMouseOverProperty
Field Value
RadProperty

ReadOnlyProperty

Declaration
public static RadProperty ReadOnlyProperty
Field Value
RadProperty

SelectedProperty

Declaration
public static RadProperty SelectedProperty
Field Value
RadProperty

state

Declaration
protected BitVector32 state
Field Value
System.Collections.Specialized.BitVector32

SuspendNotificationsState

Declaration
protected const int SuspendNotificationsState = 1
Field Value
System.Int32

VisibleProperty

Declaration
public static RadProperty VisibleProperty
Field Value
RadProperty

Properties

ContextMenu

Gets or sets the context menu associated to the item.

Declaration
public virtual RadContextMenu ContextMenu { get; set; }
Property Value
RadContextMenu

Returns an instance of RadDropDownMenu that is associated with the node. The default value is null.

Remarks

This property could be used to associate a custom menu and replace the ganttview's default. If the context menu is invoked by right-clicking an item, the ganttview's menu will not be shown and the context menu assigned to this item will be shown instead.

See Also
RadContextMenu

Current

Gets or sets a value indicating whether this instance is current.

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

true if this instance is current; otherwise, false.

DataBoundItem

Gets the data bound item.

Declaration
public object DataBoundItem { get; }
Property Value
System.Object

The data bound item.

Enabled

Gets or sets a value indicating whether this instance is enabled.

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

true if this instance is enabled; otherwise, false.

End

Gets or sets the end.

Declaration
public DateTime End { get; set; }
Property Value
System.DateTime

The end.

Expanded

Gets or sets a value indicating whether this item is expanded.

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

true if this item is expanded; otherwise, false.

GanttViewElement

Declaration
public RadGanttViewElement GanttViewElement { get; }
Property Value
RadGanttViewElement

Index

Gets the index of this item in its parent items collection.

Declaration
public int Index { get; }
Property Value
System.Int32

The index.

IsAttached

Gets a value indicating whether this data item is used in the RadGanttView.

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

Item[GanttViewTextViewColumn]

Gets or sets the value within the specified column of this item.

Declaration
public object this[GanttViewTextViewColumn column] { get; set; }
Parameters
GanttViewTextViewColumn column

The column.

Property Value
System.Object

The value.

Items

Gets the child items of this item.

Declaration
public GanttViewDataItemCollection Items { get; }
Property Value
GanttViewDataItemCollection

The child items.

Level

Gets the hierarchy level of this task.

Declaration
public int Level { get; }
Property Value
System.Int32

The level.

NextItem

Gets the next item.

Declaration
public GanttViewDataItem NextItem { get; }
Property Value
GanttViewDataItem

The next item.

Parent

Gets the parent of this data item.

Declaration
public GanttViewDataItem Parent { get; }
Property Value
GanttViewDataItem

The parent.

PrevVisibleItem

Gets the prev visible item.

Declaration
public GanttViewDataItem PrevVisibleItem { get; }
Property Value
GanttViewDataItem

The prev visible item.

Progress

Gets or sets the progress.

Declaration
public decimal Progress { get; set; }
Property Value
System.Decimal

The progress.

ReadOnly

Gets or sets a value indicating whether the item is read only.

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

true if the item is read only; otherwise, false.

Selected

Gets or sets a value indicating whether this instance is selected.

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

true if this instance is selected; otherwise, false.

Start

Gets or sets the start.

Declaration
public DateTime Start { get; set; }
Property Value
System.DateTime

The start.

Tag

Gets or sets the tag.

Declaration
public object Tag { get; set; }
Property Value
System.Object

The tag.

Title

Gets or sets the title.

Declaration
public string Title { get; set; }
Property Value
System.String

The title.

Visible

Gets or sets a value indicating whether this GanttViewDataItem is visible.

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

true if visible; otherwise, false.

Methods

CreateChildItemsCollection()

Called when the collection that will hold this children of this item is being created.

Declaration
protected virtual GanttViewDataItemCollection CreateChildItemsCollection()
Returns
GanttViewDataItemCollection

Expand()

Expands this item.

Declaration
public void Expand()

NotifyExpandedChanged(GanttViewDataItem)

Notifies the RadGanttViewElement that the expanded property of this item changed.

Declaration
protected virtual void NotifyExpandedChanged(GanttViewDataItem item)
Parameters
GanttViewDataItem item

The item.

OnChildAdded(GanttViewDataItem)

Called when a child item is added.

Declaration
protected virtual void OnChildAdded(GanttViewDataItem child)
Parameters
GanttViewDataItem child

The child item that is added.

OnChildEndChanged(GanttViewDataItem)

Called when the End property of a child item changes.

Declaration
protected virtual void OnChildEndChanged(GanttViewDataItem child)
Parameters
GanttViewDataItem child

The child item which End changed.

OnChildProgressChanged(GanttViewDataItem)

Called when the Progress property of a child item changes.

Declaration
protected virtual void OnChildProgressChanged(GanttViewDataItem child)
Parameters
GanttViewDataItem child

The child item which Progress changed.

OnChildRemoved(GanttViewDataItem)

Called when a child item is removed.

Declaration
protected virtual void OnChildRemoved(GanttViewDataItem child)
Parameters
GanttViewDataItem child

The child item that is removed.

OnChildStartChanged(GanttViewDataItem)

Called when the Start property of a child item changes.

Declaration
protected virtual void OnChildStartChanged(GanttViewDataItem child)
Parameters
GanttViewDataItem child

The child item which Start changed.

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Raises the standard .NET PropertyChanged event.

Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs e

Overrides
RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)

SetBooleanProperty(String, Int32, Boolean)

Sets a boolean property.

Declaration
protected virtual bool SetBooleanProperty(string propertyName, int propertyKey, bool value)
Parameters
System.String propertyName

Name of the property.

System.Int32 propertyKey

The property key.

System.Boolean value

The new value.

Returns
System.Boolean

SetDataBoundItem(Boolean, Object)

Sets the data bound item for this data item.

Declaration
protected virtual void SetDataBoundItem(bool dataBinding, object value)
Parameters
System.Boolean dataBinding

if set to true the method assumes the data is set through data binding.

System.Object value

The value.

Exceptions
System.InvalidOperationException

DataBoundItem can not be set explicitly in bound mode.

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
System.Object.ToString()

Explicit Interface Implementations

IDataItem.DataBoundItem

Declaration
object IDataItem.DataBoundItem { get; set; }
Returns
System.Object

Implements
IDataItem.DataBoundItem

IDataItem.FieldCount

Declaration
int IDataItem.FieldCount { get; }
Returns
System.Int32

Implements
IDataItem.FieldCount

IDataItem.get_Item(Int32)

Declaration
object IDataItem.get_Item(int index)
Parameters
System.Int32 index

Returns
System.Object

Implements
Telerik.WinControls.Data.IDataItem.get_Item(System.Int32)

IDataItem.get_Item(String)

Declaration
object IDataItem.get_Item(string name)
Parameters
System.String name

Returns
System.Object

Implements
Telerik.WinControls.Data.IDataItem.get_Item(System.String)

IDataItem.IndexOf(String)

Declaration
int IDataItem.IndexOf(string name)
Parameters
System.String name

Returns
System.Int32

Implements
IDataItem.IndexOf(String)

IDataItem.Item[Int32]

Declaration
object IDataItem.this[] { get; set; }
Parameters
System.Int32 index

Returns
System.Object

Implements
IDataItem.Item[Int32]

IDataItem.Item[String]

Declaration
object IDataItem.this[] { get; set; }
Parameters
System.String name

Returns
System.Object

Implements
IDataItem.Item[String]

IDataItem.set_Item(Int32, Object)

Declaration
void IDataItem.set_Item(int index, object value)
Parameters
System.Int32 index

System.Object value

Implements
Telerik.WinControls.Data.IDataItem.set_Item(System.Int32, System.Object)

IDataItem.set_Item(String, Object)

Declaration
void IDataItem.set_Item(string name, object value)
Parameters
System.String name

System.Object value

Implements
Telerik.WinControls.Data.IDataItem.set_Item(System.String, System.Object)

Extension Methods

CommonExtensions.ClearIfNoBindingAndSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
CommonExtensions.SetIfDifferent(RadObject, RadProperty, Object)
CommonExtensions.ClearIfSet(RadObject, RadProperty)
CommonExtensions.IsLocalValueSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • 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.