RadTimeline groupnames not showing

2 posts, 0 answers
  1. Erik Andreas
    Erik Andreas avatar
    1 posts
    Member since:
    Nov 2013

    Posted 14 Oct 2014 Link to this post

    Hello,

    How can I get groupnames to show in my RadTimeline? I set the radtimeline itemssource (list of Tags) and the other properties in the codebehind . As shown in the attached image, the resulting timeline do not show the groupnames like in your example at http://www.telerik.com/help/silverlight/radtimeline-features-grouping.html. What telerik magic am I missing?

    Regards,

    Erik

    my xaml:

            <telerik:RadTimeline BorderThickness="0" telerik:StyleManager.Theme="Windows8"
                                                     x:Name="timeline"   
                                                     StartPath="Date" 
                                                     HorizontalAlignment="Stretch" 
                                                     VerticalAlignment="Stretch"
                                                     Margin="5"
                                                     GroupPath="GroupName"
                                                     GroupExpandMode="None" 
                                                      >
    code:

    list = all my items with all properties set with non-null values.

                            timeline.ItemsSource = list.OrderBy(x=>x.GroupName);
                            timeline.PeriodStart = list().first.Date.AddHours(-1);
                            timeline.PeriodEnd = list().last.Date.AddHours(1);

                            timeline.VisiblePeriodStart = list.first().Date.AddHours(-1);
                            timeline.VisiblePeriodEnd = list.last().Date.AddHours(1);

    Itemssource class:

        public class Tag
        {
            public Tag() { }

            public string Name { get; set; }
            public SolidColorBrush Color { get; set; }
            public string Description { get; set; }
            public string Solution { get; set; }
            public DateTime Date { get; set; }
            public String GroupName { get; set; }
        }


  2. Milena
    Admin
    Milena avatar
    201 posts

    Posted 15 Oct 2014 Link to this post

    Hello Erik,

    I tried to follow your code and made a sample project (you can find it attached). On my side it works as expected, but I might be missing some important part of your implementation (some custom style for instance). You can take a look at the project and try to modify it in order to reproduce the issue. Then you can write us back with more information and code, so that we can investigate further why the group names are not displayed.

    Thank you for your cooperation.

    Regards,
    Milena
    Telerik
     

    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
Back to Top