New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents an item in the RadTimeline control, containing data such as date, title, description, actions, and images.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class TimelineItem : StateManager, IMarkableStateManager, IStateManager, IAttributeAccessor

Inheritance: objectStateManagerTimelineItem

Implements: IAttributeAccessorIMarkableStateManagerIStateManager

Inherited Members StateManager.IsTrackingViewStateStateManager.ViewStateobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the TimelineItem class.

C#
public TimelineItem()

Initializes a new instance of the TimelineItem class.

C#
public TimelineItem(DateTime date, string title)
Parameters:dateDateTime

The date of the item.

titlestring

The title of the item.

Initializes a new instance of the TimelineItem class.

C#
public TimelineItem(DateTime date)
Parameters:dateDateTime

The date of the item.

C#
public TimelineItem(RadTimeline owner)
Parameters:ownerRadTimeline

Properties

Gets or set the Actions of the current TimelineItem

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TimelineItemActionsCollection Actions { get; }
C#
[Browsable(false)]
public Dictionary<string, string> Attributes { get; set; }

Gets or set the DataItem of the current TimelineItem

C#
[Browsable(false)]
public object DataItem { get; set; }

Gets or set the Date of the current TimelineItem

C#
public virtual DateTime Date { get; set; }

Gets or set the Description of the current TimelineItem

C#
public virtual string Description { get; set; }
C#
[Browsable(false)]
[Themeable(false)]
[Bindable(false)]
public bool HasAttributes { get; }

Gets the ID of the current TimelineItem

C#
public virtual string ID { get; }

Gets or set the Images of the current TimelineItem

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TimelineItemImagesCollection Images { get; }

Gets the RadTimeline which this item belongs to.

C#
[Browsable(false)]
public RadTimeline Owner { get; set; }
Property Value:

The RadTimeline which this item belongs to; null (Nothing) if the item is not added to any RadTimeline control.

Gets or set the Subtitle of the current TimelineItem

C#
public virtual string Subtitle { get; set; }

Gets or set the Title of the current TimelineItem

C#
public virtual string Title { get; set; }

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

C#
public bool Visible { get; set; }
Property Value:

true if visible; otherwise, false.

Methods

Compares the current instance with another object of the same type.

C#
public int CompareTo(object obj)
Parameters:objobject

An object to compare with this instance.

Returns:

int

A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than obj. Zero This instance is equal to obj. Greater than zero This instance is greater than obj.

Exceptions: ArgumentException

obj is not the same type as this instance.

C#
public string GetAttribute(string key)
Parameters:keystringReturns:

string

Implements: IAttributeAccessor.GetAttribute(string)

C#
protected void LoadChildViewState(object viewState)
Parameters:viewStateobject
C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected object SaveChildViewState()
Returns:

object

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
public void SetAttribute(string key, string value)
Parameters:keystringvaluestring

Implements: IAttributeAccessor.SetAttribute(string, string)

C#
protected void TrackChildViewState()
C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()