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
Identifies the property that tracks whether the item is current in the Gantt view.
public static RadProperty CurrentProperty
Identifies the property that stores whether the task item is enabled.
public static RadProperty EnabledProperty
protected const int IsAllowDropState = 4
Bit mask that stores whether the task item's child items are expanded.
protected const int IsExpandedState = 2
Identifies the property that binds a task item's pointer-over state to its visual element.
public static RadProperty IsMouseOverProperty
Identifies the property that stores whether the task item is read-only.
public static RadProperty ReadOnlyProperty
Identifies the property used by task visuals to reflect whether the item is selected.
public static RadProperty SelectedProperty
Stores the packed state flags used by task-item expansion and notification updates.
protected BitVector32 state
Bit mask that suspends property notifications and view updates while item state is being changed.
protected const int SuspendNotificationsState = 1
Identifies the property that controls whether the task item is included in the visible hierarchy.
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.
Gets the owning Gantt view element, resolving it from the task hierarchy when it is not cached.
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.
[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:
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.