Skip to main content
Version: 4.2

TimelineItemEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Provides the server-side item and source record for a timeline click.

public sealed class TimelineItemEventArgs : EventArgs

Derives from or implements EventArgs.

Use Item, Index, DataItem to access the event data.

Example:

var timeline = new Timeline();
timeline.Items.Add(new TimelineItem(DateTime.Now, "Job finished") { Tag = "job-42" });
timeline.ItemClick += (sender, e) =>
MessageBox.Show($"Item {e.Index}: {e.Item.Title}; tag: {e.Item.Tag}");

Constructors​

Instance member TimelineItemEventArgs(item, index, dataItem)​

Initializes item event data.

NameTypeDescription
itemTimelineItemThe clicked timeline item.
indexInt32Its zero-based index in Items at the time of the event.
dataItemObjectThe original bound source record, or null for an unbound item.

Properties​

Instance member DataItem​

Object: Gets the original bound record, or null for unbound items.

Instance member Index​

Int32: Gets the item's zero-based index in the current collection.

Instance member Item​

TimelineItem: Gets the clicked item; its Tag remains on the server.