Obtaining TimelineItemGroupControl

3 posts, 1 answers
  1. Amige
    Amige avatar
    44 posts
    Member since:
    Dec 2013

    Posted 06 Dec 2014 Link to this post


    I am using a TimeLine control in which I have several groups.
    I'd like to know if there is a way to get the TimelineItemGroupControl over which I am moving the mouse.
    In my scenario I am selecting a row from a GridView and drag-and-drop over the TimeLine control, and depending on the group that I drop the row I need to perform some action.

    The TimeLine control has the next style:

    <Style TargetType="telerik:TimelineItemGroupControl">
          <Setter Property="IsExpanded" Value="True" />
          <Setter Property="Header" Value="{x:Null}"/>

    Thanks in advance,

  2. Answer
    Tsvetie avatar
    1517 posts

    Posted 09 Dec 2014 Link to this post

    Hello Alberto,

    You can use the OriginalSource property of the DragEventArgs. For example:

    using Telerik.Windows.Controls;
    using Telerik.Windows.DragDrop;
    using Telerik.Windows.Controls.Timeline;
    private void OnDrop(object sender, Telerik.Windows.DragDrop.DragEventArgs args)
        var source = args.OriginalSource as FrameworkElement;
        var timelineGroup = source.ParentOfType<TimelineItemGroupControl>();


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft banner
  4. Amige
    Amige avatar
    44 posts
    Member since:
    Dec 2013

    Posted 09 Dec 2014 in reply to Tsvetie Link to this post

    Hello Tsvetie,

    Thanks for the help, that's what I was looking for.


Back to Top