I'm trying to use the radtimeline to display the machine state in a period of time.
For example red item if the machine was stopped and green item if the machine was running.
I manage to have all items with the right color (green or red) and on the same row of the RadTimeLine control.
But I have some white gap between successive periods of time. (see screenshot)
My Xaml is :
I would like to have a continuous timeline without these white space.
Is there a workaround for this issue?
For example red item if the machine was stopped and green item if the machine was running.
I manage to have all items with the right color (green or red) and on the same row of the RadTimeLine control.
But I have some white gap between successive periods of time. (see screenshot)
My Xaml is :
<Grid.Resources> <DataTemplate x:Key="ProductionItemTemplate"> <Rectangle Height="50" HorizontalAlignment="Stretch" Fill="Red" Margin="0"> </Rectangle> </DataTemplate> <DataTemplate x:Key="NonProductionItemTemplate" > <Rectangle Height="50" HorizontalAlignment="Stretch" Fill="Green" Margin="0"> </Rectangle> </DataTemplate> <local:CustomItemTemplateSelector x:Key="CustomItemTemplateSelector" NonProductionItemTemplate="{StaticResource NonProductionItemTemplate}" ProductionItemTemplate="{StaticResource ProductionItemTemplate}"/> </Grid.Resources> <telerik:RadTimeline x:Name="RadTimeline1" PeriodStart="2016/01/01" PeriodEnd="2016/01/02" StartPath="StartDate" DurationPath="Duration" ItemRowIndexGenerator="{StaticResource NewLineRowIndexGenerator}" ItemsSource="{Binding Data}" ItemTemplateSelector="{StaticResource CustomItemTemplateSelector}" > <telerik:RadTimeline.Intervals> <telerik:HourInterval /> </telerik:RadTimeline.Intervals></telerik:RadTimeline>I would like to have a continuous timeline without these white space.
Is there a workaround for this issue?
