New to Telerik UI for WinFormsStart 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

C#
public static RadProperty CurrentProperty
C#
public static RadProperty EnabledProperty
C#
protected const int IsAllowDropState = 4
C#
protected const int IsExpandedState = 2
C#
public static RadProperty IsMouseOverProperty
C#
public static RadProperty ReadOnlyProperty
C#
public static RadProperty SelectedProperty
C#
protected BitVector32 state
C#
protected const int SuspendNotificationsState = 1
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.

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.

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.

C#
public RadGanttViewElement GanttViewElement { get; }

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

Sets the data bound item for this data item.

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

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

valueobject

The value.

Exceptions:

InvalidOperationException

DataBoundItem can not be set explicitly in bound mode.

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()