This question is locked. New answers and comments are not allowed.
Hi,
I'm using radtimebar on version 2012.1.514.1050 and I'm having an issue with the behaviour of the MinSelectionRange and MaxSelectionRange.
I've this MVVM scenario and seems that the MinSelectionRange and MaxSelectionRange does not work and allows any selection. The same scenario with static properties (like on firtst look sample) works just fine.
My RadtimeBar code is:
<telerik:RadTimeBar Name="timeBar1" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="10,10,10,10"
PeriodStart="{Binding Path=PeriodStart,Mode=TwoWay}" PeriodEnd="{Binding Path=PeriodEnd,Mode=TwoWay}"
VisiblePeriodStart="{Binding Path=VisiblePeriodStart,Mode=TwoWay}" VisiblePeriodEnd="{Binding Path=VisiblePeriodEnd,Mode=TwoWay}"
SelectionStart="{Binding Path=SelectionStart,Mode=TwoWay}" SelectionEnd="{Binding Path=SelectionEnd,Mode=TwoWay}"
IsSnapToIntervalEnabled="true"
MinSelectionRange="3.00:00:00"
MaxSelectionRange="14.00:00:00">
<telerik:RadTimeBar.Intervals>
<telerik:QuarterInterval />
<telerik:MonthInterval />
<telerik:WeekInterval />
<telerik:DayInterval />
<telerik:HourInterval/>
</telerik:RadTimeBar.Intervals>
<Grid>
<telerik:RadColumnSparkline ItemFill="Salmon" ItemsSource="{Binding Alerts}" XValuePath="TimeStamp" YValuePath="Count" Opacity="0.7"/>
<telerik:RadLinearSparkline LineStroke="Blue" ItemsSource="{Binding Events}" XValuePath="TimeStamp" YValuePath="Count" LineShapeStyle="{StaticResource SparklineLineStyle}" Opacity="0.9" />
</Grid>
MinSelectionRange="3.00:00:00"
MaxSelectionRange="14.00:00:00">
I'm using radtimebar on version 2012.1.514.1050 and I'm having an issue with the behaviour of the MinSelectionRange and MaxSelectionRange.
I've this MVVM scenario and seems that the MinSelectionRange and MaxSelectionRange does not work and allows any selection. The same scenario with static properties (like on firtst look sample) works just fine.
My RadtimeBar code is:
<telerik:RadTimeBar Name="timeBar1" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="10,10,10,10"
PeriodStart="{Binding Path=PeriodStart,Mode=TwoWay}" PeriodEnd="{Binding Path=PeriodEnd,Mode=TwoWay}"
VisiblePeriodStart="{Binding Path=VisiblePeriodStart,Mode=TwoWay}" VisiblePeriodEnd="{Binding Path=VisiblePeriodEnd,Mode=TwoWay}"
SelectionStart="{Binding Path=SelectionStart,Mode=TwoWay}" SelectionEnd="{Binding Path=SelectionEnd,Mode=TwoWay}"
IsSnapToIntervalEnabled="true"
MinSelectionRange="3.00:00:00"
MaxSelectionRange="14.00:00:00">
<telerik:RadTimeBar.Intervals>
<telerik:QuarterInterval />
<telerik:MonthInterval />
<telerik:WeekInterval />
<telerik:DayInterval />
<telerik:HourInterval/>
</telerik:RadTimeBar.Intervals>
<Grid>
<telerik:RadColumnSparkline ItemFill="Salmon" ItemsSource="{Binding Alerts}" XValuePath="TimeStamp" YValuePath="Count" Opacity="0.7"/>
<telerik:RadLinearSparkline LineStroke="Blue" ItemsSource="{Binding Events}" XValuePath="TimeStamp" YValuePath="Count" LineShapeStyle="{StaticResource SparklineLineStyle}" Opacity="0.9" />
</Grid>
MinSelectionRange="3.00:00:00"
MaxSelectionRange="14.00:00:00">