New to Telerik UI for WinForms? Start a free 30-day trial

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

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

Inheritance: objectDisposableObjectRadObjectGanttViewDataItem

Implements: ICustomTypeDescriptorIDataItemIDisposableINotifyPropertyChanged

Inherited Members RadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(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(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes a new instance of the GanttViewDataItem class.

C#
public GanttViewDataItem()

Fields

Identifies the property that tracks whether the item is current in the Gantt view.

C#
public static RadProperty CurrentProperty

Identifies the property that stores whether the task item is enabled.

C#
public static RadProperty EnabledProperty
C#
protected const int IsAllowDropState = 4

Bit mask that stores whether the task item's child items are expanded.

C#
protected const int IsExpandedState = 2

Identifies the property that binds a task item's pointer-over state to its visual element.

C#
public static RadProperty IsMouseOverProperty

Identifies the property that stores whether the task item is read-only.

C#
public static RadProperty ReadOnlyProperty

Identifies the property used by task visuals to reflect whether the item is selected.

C#
public static RadProperty SelectedProperty

Stores the packed state flags used by task-item expansion and notification updates.

C#
protected BitVector32 state

Bit mask that suspends property notifications and view updates while item state is being changed.

C#
protected const int SuspendNotificationsState = 1

Identifies the property that controls whether the task item is included in the visible hierarchy.

C#
public static RadProperty VisibleProperty

Properties

Gets or sets the context menu associated to the item.

C#
public virtual RadContextMenu ContextMenu { get; set; }
Property Value:

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

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.

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

C#
[Browsable(false)]
public bool Current { get; set; }
Property Value:

true if this instance is current; otherwise, false.

Gets the data bound item.

C#
public object DataBoundItem { get; }
Property Value:

The data bound item.

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

C#
public bool Enabled { get; set; }
Property Value:

true if this instance is enabled; otherwise, false.

Gets or sets the end.

C#
public DateTime End { get; set; }
Property Value:

The end.

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

C#
[Browsable(false)]
public bool Expanded { get; set; }
Property Value:

true if this item is expanded; otherwise, false.

Gets the owning Gantt view element, resolving it from the task hierarchy when it is not cached.

C#
public RadGanttViewElement GanttViewElement { get; }

The internal setter also assigns the element to this item's child items.

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

C#
[Browsable(false)]
public int Index { get; }
Property Value:

The index.

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

C#
public bool IsAttached { get; }

Gets the child items of this item.

C#
[Browsable(true)]
public GanttViewDataItemCollection Items { get; }
Property Value:

The child items.

Gets the hierarchy level of this task.

C#
[Browsable(false)]
public int Level { get; }
Property Value:

The level.

Gets the next item.

C#
[Browsable(false)]
public GanttViewDataItem NextItem { get; }
Property Value:

The next item.

Gets the parent of this data item.

C#
[Browsable(false)]
public GanttViewDataItem Parent { get; }
Property Value:

The parent.

Gets the prev visible item.

C#
[Browsable(false)]
public GanttViewDataItem PrevVisibleItem { get; }
Property Value:

The prev visible item.

Gets or sets the progress.

C#
public decimal Progress { get; set; }
Property Value:

The progress.

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

C#
public bool ReadOnly { get; set; }
Property Value:

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

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

C#
public bool Selected { get; set; }
Property Value:

true if this instance is selected; otherwise, false.

Gets or sets the start.

C#
public DateTime Start { get; set; }
Property Value:

The start.

Gets or sets the tag.

C#
public object Tag { get; set; }
Property Value:

The tag.

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

C#
public object this[GanttViewTextViewColumn column] { get; set; }
Parameters:columnGanttViewTextViewColumn

The column.

Property Value:

The value.

Gets or sets the title.

C#
public string Title { get; set; }
Property Value:

The title.

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

C#
public bool Visible { get; set; }
Property Value:

true if visible; otherwise, false.

Methods

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

C#
protected virtual GanttViewDataItemCollection CreateChildItemsCollection()
Returns:

GanttViewDataItemCollection

Expands this item.

C#
public void Expand()

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

C#
protected virtual void NotifyExpandedChanged(GanttViewDataItem item)
Parameters:itemGanttViewDataItem

The item.

Called when a child item is added.

C#
protected virtual void OnChildAdded(GanttViewDataItem child)
Parameters:childGanttViewDataItem

The child item that is added.

Called when the End property of a child item changes.

C#
protected virtual void OnChildEndChanged(GanttViewDataItem child)
Parameters:childGanttViewDataItem

The child item which End changed.

Called when the Progress property of a child item changes.

C#
protected virtual void OnChildProgressChanged(GanttViewDataItem child)
Parameters:childGanttViewDataItem

The child item which Progress changed.

Called when a child item is removed.

C#
protected virtual void OnChildRemoved(GanttViewDataItem child)
Parameters:childGanttViewDataItem

The child item that is removed.

Called when the Start property of a child item changes.

C#
protected virtual void OnChildStartChanged(GanttViewDataItem child)
Parameters:childGanttViewDataItem

The child item which Start changed.

Raises the standard .NET PropertyChanged event.

C#
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

Overrides: RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)

Sets a boolean property.

C#
protected virtual bool SetBooleanProperty(string propertyName, int propertyKey, bool value)
Parameters:propertyNamestring

Name of the property.

propertyKeyint

The property key.

valuebool

The new value.

Returns:

bool

Assigns the underlying object, raises ItemDataBound when the item belongs to a view with a data source, and requests a property-change notification for DataBoundItem.

C#
protected virtual void SetDataBoundItem(bool dataBinding, object value)
Parameters:dataBindingbool

Indicates whether the assignment comes from data binding. The base implementation does not branch on this value.

valueobject

The underlying object represented by this data item.

Returns the task item's title.

C#
public override string ToString()
Returns:

string

The value of Title.

Overrides: object.ToString()