GanttViewDataItem
Represents the data item RadGanttView uses to represent the data it is displaying.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class GanttViewDataItem : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IDataItem
Inheritance: objectDisposableObjectRadObjectGanttViewDataItem
Implements:
Inherited Members
Constructors
Initializes a new instance of the GanttViewDataItem class.
public GanttViewDataItem()
Fields
public static RadProperty CurrentProperty
public static RadProperty EnabledProperty
protected const int IsAllowDropState = 4
protected const int IsExpandedState = 2
public static RadProperty IsMouseOverProperty
public static RadProperty ReadOnlyProperty
public static RadProperty SelectedProperty
protected BitVector32 state
protected const int SuspendNotificationsState = 1
public static RadProperty VisibleProperty
Properties
Gets or sets the context menu associated to the item.
public virtual RadContextMenu ContextMenu { get; set; }
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.
[Browsable(false)]
public bool Current { get; set; }
true if this instance is current; otherwise, false.
Gets the data bound item.
public object DataBoundItem { get; }
The data bound item.
Gets or sets a value indicating whether this instance is enabled.
public bool Enabled { get; set; }
true if this instance is enabled; otherwise, false.
Gets or sets a value indicating whether this item is expanded.
[Browsable(false)]
public bool Expanded { get; set; }
true if this item is expanded; otherwise, false.
public RadGanttViewElement GanttViewElement { get; }
Gets the index of this item in its parent items collection.
[Browsable(false)]
public int Index { get; }
The index.
Gets a value indicating whether this data item is used in the RadGanttView.
public bool IsAttached { get; }
Gets the child items of this item.
[Browsable(true)]
public GanttViewDataItemCollection Items { get; }
The child items.
Gets the hierarchy level of this task.
[Browsable(false)]
public int Level { get; }
The level.
Gets the next item.
[Browsable(false)]
public GanttViewDataItem NextItem { get; }
The next item.
Gets the parent of this data item.
[Browsable(false)]
public GanttViewDataItem Parent { get; }
The parent.
Gets the prev visible item.
[Browsable(false)]
public GanttViewDataItem PrevVisibleItem { get; }
The prev visible item.
Gets or sets the progress.
public decimal Progress { get; set; }
The progress.
Gets or sets a value indicating whether the item is read only.
public bool ReadOnly { get; set; }
true if the item is read only; otherwise, false.
Gets or sets a value indicating whether this instance is selected.
public bool Selected { get; set; }
true if this instance is selected; otherwise, false.
Gets or sets the start.
public DateTime Start { get; set; }
The start.
Gets or sets the value within the specified column of this item.
public object this[GanttViewTextViewColumn column] { get; set; }
The column.
Property Value:The value.
Gets or sets a value indicating whether this GanttViewDataItem is visible.
public bool Visible { get; set; }
true if visible; otherwise, false.
Methods
Called when the collection that will hold this children of this item is being created.
protected virtual GanttViewDataItemCollection CreateChildItemsCollection()
Expands this item.
public void Expand()
Notifies the RadGanttViewElement that the expanded property of this item changed.
protected virtual void NotifyExpandedChanged(GanttViewDataItem item)
The item.
Called when a child item is added.
protected virtual void OnChildAdded(GanttViewDataItem child)
The child item that is added.
Called when the End property of a child item changes.
protected virtual void OnChildEndChanged(GanttViewDataItem child)
The child item which End changed.
Called when the Progress property of a child item changes.
protected virtual void OnChildProgressChanged(GanttViewDataItem child)
The child item which Progress changed.
Called when a child item is removed.
protected virtual void OnChildRemoved(GanttViewDataItem child)
The child item that is removed.
Called when the Start property of a child item changes.
protected virtual void OnChildStartChanged(GanttViewDataItem child)
The child item which Start changed.
Raises the standard .NET PropertyChanged event.
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Overrides:
Sets the data bound item for this data item.