New to Telerik UI for WPF? Start a free 30-day trial

How to determine what group was clicked inside

Updated on Aug 25, 2026

Environment

ProductRadTimeline for WPF

Description

How to determine which timeline group was clicked.

Solution

Handle the MouseRightButtonDown/MouseLeftButtonDown event of the RadTimeLine and check, if the clicked element is a TimelineItemGroupControl.

Example 1: Checking the clicked element

C#

	private void RadTimeline_MouseRightButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
    {
        var panel = e.OriginalSource as VirtualizingTimelinePanel;
        if (panel != null)
        {
            var groupControl = panel.ParentOfType<TimelineItemGroupControl>();
            if (groupControl != null)
            {
                var context =  (TimelineDataItemGroup)groupControl.DataContext;
            }
        }
    }

See Also