Skip to main content

Timeline

Wisej.NET 4.2.0+

An order's activity feed grouped by day, with toned markers, a hosted button, and Load more.

The Timeline control displays an ordered, vertical activity feed: each entry has a marker on a connecting line, a timestamp, a title, an optional description and, if you need one, a Wisej control hosted underneath. Use it for the history of a record (an order, a ticket, a shipment), an audit log, or a live feed of what the system just did.

The timeline never reorders its entries: they are shown in the order of the Items collection or of the bound list, newest first or oldest first as you decide. It complements the classic ListView and DataRepeater when the data is a sequence of events rather than a table of records.

info

For a complete list of properties, methods, and events, see the API documentation.

Features​

Items​

Every entry is a TimelineItem with a Time, a Title, a Description, an Icon, a Tone, a Tag for your own data, and an optional Content control. Items notify the timeline when a property changes, so updating an item already in the collection refreshes it in the browser. Text is displayed literally, without HTML interpretation.

var item = new TimelineItem(DateTime.Now, "Order #10248 shipped")
{
Description = "Carrier: DHL Express, tracking 1Z 999 AA1 01 2345 6784",
Tone = TimelineTone.Success,
Tag = 10248
};
this.timeline1.Items.Add(item);

item.Description = "Delivered to the front desk."; // Refreshes the displayed item.

Markers and Tones​

The marker of each entry is a coloured dot whose colour comes from its Tone: Neutral, Primary (the default), Success, Warning, or Danger. The tones are colours of the theme, not fixed values. Set Icon to an image URL or a theme image key to replace the dot with an icon. ShowConnector (default true) draws the line that joins adjacent items in a group.

Time Placement and Grouping​

TimePosition places the timestamp in a separate leading column (Left, the default, mirrored in right-to-left layouts), above the title (Inline), or hides it (Hidden). TimeFormat is a .NET format string applied with the current culture; the default is HH:mm.

Set Grouping to TimelineGrouping.ByDay to insert a date heading whenever the calendar date changes from one entry to the next. Grouping never reorders entries, so sort your data before you bind it.

Hosted Content​

TimelineItem.Content accepts any Wisej control and displays it below the description: a button to open the record, a small form, a chart. The timeline parents the control while the item is attached; removing the item detaches the control without disposing it, and disposing the timeline disposes the content still attached. A control can belong to one item only.

Paging with Load More​

MaxItems limits how many entries are displayed (default 100) without truncating the collection or the bound source. While HasMoreItems is true, a Load more button is shown at the end of the feed and raises the LoadMore event: append the older entries there and set HasMoreItems to false when there are no more. LoadMoreText overrides the localized caption.

Data Binding​

Set DataSource (and optionally DataMember) to an IList, an IListSource, or a BindingSource. The timeline reads the properties Time, Title, Description, Icon, Tone, Tag and Content by convention; use TimeMember, TitleMember, DescriptionMember, IconMember, ToneMember, TagMember and ContentMember when your records name them differently. An IBindingList refreshes the view on its own; after a structural change to a plain List<T>, call RefreshData().

While bound, the source owns the structure of the collection: change the source records rather than Items.

How To​

Show the History of an Order​

this.timeline1.Grouping = TimelineGrouping.ByDay;
this.timeline1.TimeFormat = "HH:mm";
this.timeline1.HasMoreItems = false;

this.timeline1.Items.Add(new TimelineItem(new DateTime(2026, 11, 30, 9, 12, 0), "Order placed")
{
Description = "3 items, total $1,284.50",
Tone = TimelineTone.Neutral
});
this.timeline1.Items.Add(new TimelineItem(new DateTime(2026, 11, 30, 14, 40, 0), "Payment captured")
{
Tone = TimelineTone.Success
});
this.timeline1.Items.Add(new TimelineItem(new DateTime(2026, 12, 1, 8, 5, 0), "Address check failed")
{
Description = "Postal code does not match the city.",
Tone = TimelineTone.Warning,
Content = new Button { Text = "Fix address", Height = 32 }
});

// Insert the newest activity at the top of the feed.
this.timeline1.Prepend(new TimelineItem(DateTime.Now, "Support ticket #4471 opened"));

Bind to Your Own Records​

public class ShipmentEvent
{
public DateTime OccurredAt { get; set; }
public string Message { get; set; }
public string Detail { get; set; }
public TimelineTone Severity { get; set; }
}

var events = new BindingList<ShipmentEvent>(shipmentService.GetEvents(shipmentId));

this.timeline1.TimeMember = "OccurredAt";
this.timeline1.TitleMember = "Message";
this.timeline1.DescriptionMember = "Detail";
this.timeline1.ToneMember = "Severity";
this.timeline1.DataSource = events;

Handle Clicks and Load Older Entries​

ItemClick fires when an item header is clicked or activated with Enter or Space. TimelineItemEventArgs carries the Item, its Index, and the source record in DataItem when the timeline is bound.

private void timeline1_ItemClick(object sender, TimelineItemEventArgs e)
{
if (e.DataItem is ShipmentEvent shipmentEvent)
AlertBox.Show(shipmentEvent.Detail);
}

private void timeline1_LoadMore(object sender, EventArgs e)
{
var older = auditLog.GetPage(++this.page, pageSize: 20);
foreach (var entry in older)
this.timeline1.Items.Add(new TimelineItem(entry.Time, entry.Text));

this.timeline1.HasMoreItems = older.Count == 20;
}

Advanced​

JavaScript Widget​

ItemDescription
Class name"wisej.web.Timeline"
Theme appearance"timeline", with the components "group" (the date heading) and "loadMore" (the button); each entry uses "timeline-item". See Themes.
Child componentsEach entry is a "wisej.web.timeline.Item" with the child components "time", "lane", "dot", "icon", "connector", "body", "header", "title", "description" and "content". See JavaScript.