Class GanttViewDataItem
Represents the data item RadGanttView uses to represent the data it is displaying.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class GanttViewDataItem : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IDataItem
Constructors
GanttViewDataItem()
Fields
CurrentProperty
EnabledProperty
IsAllowDropState
Declaration
protected const int IsAllowDropState = 4
Field Value
System.Int32
|
IsExpandedState
Declaration
protected const int IsExpandedState = 2
Field Value
System.Int32
|
IsMouseOverProperty
ReadOnlyProperty
SelectedProperty
state
Declaration
protected BitVector32 state
Field Value
System.Collections.Specialized.BitVector32
|
SuspendNotificationsState
Declaration
protected const int SuspendNotificationsState = 1
Field Value
System.Int32
|
VisibleProperty
Properties
ContextMenu
Gets or sets the context menu associated to the item.
Declaration
public virtual RadContextMenu ContextMenu { get; set; }
Property Value
RadContextMenu
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.
See Also
Current
Gets or sets a value indicating whether this instance is current.
Declaration
public bool Current { get; set; }
Property Value
System.Boolean
|
DataBoundItem
Gets the data bound item.
Declaration
public object DataBoundItem { get; }
Property Value
System.Object
The data bound item. |
Enabled
Gets or sets a value indicating whether this instance is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
End
Gets or sets the end.
Declaration
public DateTime End { get; set; }
Property Value
System.DateTime
The end. |
Expanded
Gets or sets a value indicating whether this item is expanded.
Declaration
public bool Expanded { get; set; }
Property Value
System.Boolean
|
GanttViewElement
Index
Gets the index of this item in its parent items collection.
Declaration
public int Index { get; }
Property Value
System.Int32
The index. |
IsAttached
Gets a value indicating whether this data item is used in the RadGanttView.
Declaration
public bool IsAttached { get; }
Property Value
System.Boolean
|
Item[GanttViewTextViewColumn]
Gets or sets the value within the specified column of this item.
Declaration
public object this[GanttViewTextViewColumn column] { get; set; }
Parameters
GanttViewTextViewColumn
column
The column. |
Property Value
System.Object
The value. |
Items
Gets the child items of this item.
Declaration
public GanttViewDataItemCollection Items { get; }
Property Value
GanttViewDataItemCollection
The child items. |
Level
Gets the hierarchy level of this task.
Declaration
public int Level { get; }
Property Value
System.Int32
The level. |
NextItem
Gets the next item.
Declaration
public GanttViewDataItem NextItem { get; }
Property Value
GanttViewDataItem
The next item. |
Parent
Gets the parent of this data item.
Declaration
public GanttViewDataItem Parent { get; }
Property Value
GanttViewDataItem
The parent. |
PrevVisibleItem
Gets the prev visible item.
Declaration
public GanttViewDataItem PrevVisibleItem { get; }
Property Value
GanttViewDataItem
The prev visible item. |
Progress
Gets or sets the progress.
Declaration
public decimal Progress { get; set; }
Property Value
System.Decimal
The progress. |
ReadOnly
Gets or sets a value indicating whether the item is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
System.Boolean
|
Selected
Gets or sets a value indicating whether this instance is selected.
Declaration
public bool Selected { get; set; }
Property Value
System.Boolean
|
Start
Gets or sets the start.
Declaration
public DateTime Start { get; set; }
Property Value
System.DateTime
The start. |
Tag
Gets or sets the tag.
Declaration
public object Tag { get; set; }
Property Value
System.Object
The tag. |
Title
Gets or sets the title.
Declaration
public string Title { get; set; }
Property Value
System.String
The title. |
Visible
Gets or sets a value indicating whether this GanttViewDataItem is visible.
Declaration
public bool Visible { get; set; }
Property Value
System.Boolean
|
Methods
CreateChildItemsCollection()
Called when the collection that will hold this children of this item is being created.
Declaration
protected virtual GanttViewDataItemCollection CreateChildItemsCollection()
Returns
GanttViewDataItemCollection
|
Expand()
Expands this item.
Declaration
public void Expand()
NotifyExpandedChanged(GanttViewDataItem)
Notifies the RadGanttViewElement that the expanded property of this item changed.
Declaration
protected virtual void NotifyExpandedChanged(GanttViewDataItem item)
Parameters
GanttViewDataItem
item
The item. |
OnChildAdded(GanttViewDataItem)
Called when a child item is added.
Declaration
protected virtual void OnChildAdded(GanttViewDataItem child)
Parameters
GanttViewDataItem
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
GanttViewDataItem
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
GanttViewDataItem
child
The child item which Progress changed. |
OnChildRemoved(GanttViewDataItem)
Called when a child item is removed.
Declaration
protected virtual void OnChildRemoved(GanttViewDataItem child)
Parameters
GanttViewDataItem
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
GanttViewDataItem
child
The child item which Start changed. |
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
SetBooleanProperty(String, Int32, Boolean)
Sets a boolean property.
Declaration
protected virtual bool SetBooleanProperty(string propertyName, int propertyKey, bool value)
Parameters
System.String
propertyName
Name of the property. |
System.Int32
propertyKey
The property key. |
System.Boolean
value
The new value. |
Returns
System.Boolean
|
SetDataBoundItem(Boolean, Object)
Sets the data bound item for this data item.
Declaration
protected virtual void SetDataBoundItem(bool dataBinding, object value)
Parameters
System.Boolean
dataBinding
if set to |
System.Object
value
The value. |
Exceptions
System.InvalidOperationException
DataBoundItem can not be set explicitly in bound mode. |
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Explicit Interface Implementations
IDataItem.DataBoundItem
Declaration
object IDataItem.DataBoundItem { get; set; }
Returns
System.Object
|
Implements
IDataItem.FieldCount
IDataItem.get_Item(Int32)
Declaration
object IDataItem.get_Item(int index)
Parameters
System.Int32
index
|
Returns
System.Object
|
Implements
IDataItem.get_Item(String)
Declaration
object IDataItem.get_Item(string name)
Parameters
System.String
name
|
Returns
System.Object
|
Implements
IDataItem.IndexOf(String)
Declaration
int IDataItem.IndexOf(string name)
Parameters
System.String
name
|
Returns
System.Int32
|
Implements
IDataItem.Item[Int32]
Declaration
object IDataItem.this[] { get; set; }
Parameters
System.Int32
index
|
Returns
System.Object
|
Implements
IDataItem.Item[String]
Declaration
object IDataItem.this[] { get; set; }
Parameters
System.String
name
|
Returns
System.Object
|
Implements
IDataItem.set_Item(Int32, Object)
Declaration
void IDataItem.set_Item(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Implements
IDataItem.set_Item(String, Object)
Declaration
void IDataItem.set_Item(string name, object value)
Parameters
System.String
name
|
System.Object
value
|