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; }
}
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; }
}