Class
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:

cs-api-definition
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

GanttViewDataItem()

Initializes a new instance of the GanttViewDataItem class.

Declaration

cs-api-definition
public GanttViewDataItem()

Fields

CurrentProperty

Declaration

cs-api-definition
public static RadProperty CurrentProperty

Field Value

RadProperty

EnabledProperty

Declaration

cs-api-definition
public static RadProperty EnabledProperty

Field Value

RadProperty

IsAllowDropState

Declaration

cs-api-definition
protected const int IsAllowDropState = 4

Field Value

int

IsExpandedState

Declaration

cs-api-definition
protected const int IsExpandedState = 2

Field Value

int

IsMouseOverProperty

Declaration

cs-api-definition
public static RadProperty IsMouseOverProperty

Field Value

RadProperty

ReadOnlyProperty

Declaration

cs-api-definition
public static RadProperty ReadOnlyProperty

Field Value

RadProperty

SelectedProperty

Declaration

cs-api-definition
public static RadProperty SelectedProperty

Field Value

RadProperty

SuspendNotificationsState

Declaration

cs-api-definition
protected const int SuspendNotificationsState = 1

Field Value

int

VisibleProperty

Declaration

cs-api-definition
public static RadProperty VisibleProperty

Field Value

RadProperty

state

Declaration

cs-api-definition
protected BitVector32 state

Field Value

BitVector32

Properties

ContextMenu

Gets or sets the context menu associated to the item.

Declaration

cs-api-definition
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.

Current

Gets or sets a value indicating whether this instance is current.

Declaration

cs-api-definition
[Browsable(false)]
public bool Current { get; set; }

Property Value

bool

true if this instance is current; otherwise, false.

DataBoundItem

Gets the data bound item.

Declaration

cs-api-definition
public object DataBoundItem { get; }

Property Value

object

The data bound item.

Enabled

Gets or sets a value indicating whether this instance is enabled.

Declaration

cs-api-definition
public bool Enabled { get; set; }

Property Value

bool

true if this instance is enabled; otherwise, false.

End

Gets or sets the end.

Declaration

cs-api-definition
public DateTime End { get; set; }

Property Value

DateTime

The end.

Expanded

Gets or sets a value indicating whether this item is expanded.

Declaration

cs-api-definition
[Browsable(false)]
public bool Expanded { get; set; }

Property Value

bool

true if this item is expanded; otherwise, false.

GanttViewElement

Declaration

cs-api-definition
public RadGanttViewElement GanttViewElement { get; }

Property Value

RadGanttViewElement

Index

Gets the index of this item in its parent items collection.

Declaration

cs-api-definition
[Browsable(false)]
public int Index { get; }

Property Value

int

The index.

IsAttached

Gets a value indicating whether this data item is used in the RadGanttView.

Declaration

cs-api-definition
public bool IsAttached { get; }

Property Value

bool

Items

Gets the child items of this item.

Declaration

cs-api-definition
[Browsable(true)]
public GanttViewDataItemCollection Items { get; }

Property Value

GanttViewDataItemCollection

The child items.

Level

Gets the hierarchy level of this task.

Declaration

cs-api-definition
[Browsable(false)]
public int Level { get; }

Property Value

int

The level.

NextItem

Gets the next item.

Declaration

cs-api-definition
[Browsable(false)]
public GanttViewDataItem NextItem { get; }

Property Value

GanttViewDataItem

The next item.

Parent

Gets the parent of this data item.

Declaration

cs-api-definition
[Browsable(false)]
public GanttViewDataItem Parent { get; }

Property Value

GanttViewDataItem

The parent.

PrevVisibleItem

Gets the prev visible item.

Declaration

cs-api-definition
[Browsable(false)]
public GanttViewDataItem PrevVisibleItem { get; }

Property Value

GanttViewDataItem

The prev visible item.

Progress

Gets or sets the progress.

Declaration

cs-api-definition
public decimal Progress { get; set; }

Property Value

decimal

The progress.

ReadOnly

Gets or sets a value indicating whether the item is read only.

Declaration

cs-api-definition
public bool ReadOnly { get; set; }

Property Value

bool

true if the item is read only; otherwise, false.

Selected

Gets or sets a value indicating whether this instance is selected.

Declaration

cs-api-definition
public bool Selected { get; set; }

Property Value

bool

true if this instance is selected; otherwise, false.

Start

Gets or sets the start.

Declaration

cs-api-definition
public DateTime Start { get; set; }

Property Value

DateTime

The start.

Tag

Gets or sets the tag.

Declaration

cs-api-definition
public object Tag { get; set; }

Property Value

object

The tag.

Title

Gets or sets the title.

Declaration

cs-api-definition
public string Title { get; set; }

Property Value

string

The title.

Visible

Gets or sets a value indicating whether this GanttViewDataItem is visible.

Declaration

cs-api-definition
public bool Visible { get; set; }

Property Value

bool

true if visible; otherwise, false.

this[GanttViewTextViewColumn]

Gets or sets the value within the specified column of this item.

Declaration

cs-api-definition
public object this[GanttViewTextViewColumn column] { get; set; }

Parameters

column

GanttViewTextViewColumn

The column.

Property Value

object

The value.

Methods

CreateChildItemsCollection()

Called when the collection that will hold this children of this item is being created.

Declaration

cs-api-definition
protected virtual GanttViewDataItemCollection CreateChildItemsCollection()

Returns

GanttViewDataItemCollection

Expand()

Expands this item.

Declaration

cs-api-definition
public void Expand()

NotifyExpandedChanged(GanttViewDataItem)

Notifies the RadGanttViewElement that the expanded property of this item changed.

Declaration

cs-api-definition
protected virtual void NotifyExpandedChanged(GanttViewDataItem item)

Parameters

item

GanttViewDataItem

The item.

OnChildAdded(GanttViewDataItem)

Called when a child item is added.

Declaration

cs-api-definition
protected virtual void OnChildAdded(GanttViewDataItem child)

Parameters

child

GanttViewDataItem

The child item that is added.

OnChildEndChanged(GanttViewDataItem)

Called when the End property of a child item changes.

Declaration

cs-api-definition
protected virtual void OnChildEndChanged(GanttViewDataItem child)

Parameters

child

GanttViewDataItem

The child item which End changed.

OnChildProgressChanged(GanttViewDataItem)

Called when the Progress property of a child item changes.

Declaration

cs-api-definition
protected virtual void OnChildProgressChanged(GanttViewDataItem child)

Parameters

child

GanttViewDataItem

The child item which Progress changed.

OnChildRemoved(GanttViewDataItem)

Called when a child item is removed.

Declaration

cs-api-definition
protected virtual void OnChildRemoved(GanttViewDataItem child)

Parameters

child

GanttViewDataItem

The child item that is removed.

OnChildStartChanged(GanttViewDataItem)

Called when the Start property of a child item changes.

Declaration

cs-api-definition
protected virtual void OnChildStartChanged(GanttViewDataItem child)

Parameters

child

GanttViewDataItem

The child item which Start changed.

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Raises the standard .NET PropertyChanged event.

Declaration

cs-api-definition
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)

Parameters

e

PropertyChangedEventArgs

Overrides RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)

SetBooleanProperty(string, int, bool)

Sets a boolean property.

Declaration

cs-api-definition
protected virtual bool SetBooleanProperty(string propertyName, int propertyKey, bool value)

Parameters

propertyName

string

Name of the property.

propertyKey

int

The property key.

value

bool

The new value.

Returns

bool

SetDataBoundItem(bool, object)

Sets the data bound item for this data item.

Declaration

cs-api-definition
protected virtual void SetDataBoundItem(bool dataBinding, object value)

Parameters

dataBinding

bool

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

value

object

The value.

Exceptions

InvalidOperationException

DataBoundItem can not be set explicitly in bound mode.

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()