ClassGanttViewDataItem
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
GanttViewDataItem()
Initializes a new instance of the GanttViewDataItem class.
Declaration
public GanttViewDataItem()
Fields
Properties
ContextMenu
Gets or sets the context menu associated to the item.
Declaration
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.
Current
Gets or sets a value indicating whether this instance is current.
Declaration
[Browsable(false)]
public bool Current { get; set; }
Property Value
true if this instance is current; otherwise, false.
DataBoundItem
Gets the data bound item.
Declaration
public object DataBoundItem { get; }
Property Value
The data bound item.
Enabled
Gets or sets a value indicating whether this instance is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
true if this instance is enabled; otherwise, false.
End
Gets or sets the end.
Expanded
Gets or sets a value indicating whether this item is expanded.
Declaration
[Browsable(false)]
public bool Expanded { get; set; }
Property Value
true if this item is expanded; otherwise, false.
GanttViewElement
Declaration
public RadGanttViewElement GanttViewElement { get; }
Property Value
Index
Gets the index of this item in its parent items collection.
Declaration
[Browsable(false)]
public int Index { get; }
Property Value
The index.
IsAttached
Gets a value indicating whether this data item is used in the RadGanttView.
Items
Gets the child items of this item.
Declaration
[Browsable(true)]
public GanttViewDataItemCollection Items { get; }
Property Value
The child items.
Level
Gets the hierarchy level of this task.
Declaration
[Browsable(false)]
public int Level { get; }
Property Value
The level.
NextItem
Gets the next item.
Declaration
[Browsable(false)]
public GanttViewDataItem NextItem { get; }
Property Value
The next item.
Parent
Gets the parent of this data item.
Declaration
[Browsable(false)]
public GanttViewDataItem Parent { get; }
Property Value
The parent.
PrevVisibleItem
Gets the prev visible item.
Declaration
[Browsable(false)]
public GanttViewDataItem PrevVisibleItem { get; }
Property Value
The prev visible item.
Progress
Gets or sets the progress.
Declaration
public decimal Progress { get; set; }
Property Value
The progress.
ReadOnly
Gets or sets a value indicating whether the item is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
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
true if this instance is selected; otherwise, false.
Start
Gets or sets the start.
Declaration
public DateTime Start { get; set; }
Property Value
The start.
Tag
Gets or sets the tag.
Title
Gets or sets the title.
Visible
Gets or sets a value indicating whether this GanttViewDataItem is visible.
Declaration
public bool Visible { get; set; }
Property Value
true if visible; otherwise, false.
this[GanttViewTextViewColumn]
Gets or sets the value within the specified column of this item.
Declaration
public object this[GanttViewTextViewColumn column] { get; set; }
Parameters
column
The column.
Property Value
The value.
Methods
CreateChildItemsCollection()
Called when the collection that will hold this children of this item is being created.
Declaration
protected virtual GanttViewDataItemCollection CreateChildItemsCollection()
Returns
NotifyExpandedChanged(GanttViewDataItem)
Notifies the RadGanttViewElement that the expanded property of this item changed.
Declaration
protected virtual void NotifyExpandedChanged(GanttViewDataItem item)
Parameters
item
The item.
OnChildAdded(GanttViewDataItem)
Called when a child item is added.
Declaration
protected virtual void OnChildAdded(GanttViewDataItem child)
Parameters
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
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
child
The child item which Progress changed.
OnChildRemoved(GanttViewDataItem)
Called when a child item is removed.
Declaration
protected virtual void OnChildRemoved(GanttViewDataItem child)
Parameters
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
child
The child item which Start changed.
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
Overrides
SetBooleanProperty(string, int, bool)
Sets a boolean property.
SetDataBoundItem(bool, object)
Sets the data bound item for this data item.
Declaration
protected virtual void SetDataBoundItem(bool dataBinding, object value)
Parameters
dataBinding
if set to true the method assumes the data is set through data binding.
value
The value.
Exceptions
DataBoundItem can not be set explicitly in bound mode.