I've noticed that my TimeBar won't allow me to change the visible range with the GUI until I've set all of the times a second time.
Here's my TimeBar (The content is filled in dynamically):
When I populate the time bar, I set all of the time values according to the order another forum post described:
But the first time I do this, the visible period bar will take up the full width of the control and will not allow me to change its size. (It seems like neither the VisiblePeriod or the Selection values are actually displayed.) If I switch to another set of data, however, everything works fine. The visible period will be slightly less than the total size of the control and I'm allowed to zoom and scroll as I please. It doesn't seem to matter which set of data I select first.
Any ideas why this is happening?
Here's my TimeBar (The content is filled in dynamically):
<
telerik:RadTimeBar
x:Name
=
"tbChart"
Grid.Column
=
"1"
PeriodStart
=
"2011-01-01 12:00:00 AM"
PeriodEnd
=
"2011-01-01 12:11:00 AM"
SelectionStart
=
"2011-01-01 12:03:00 AM"
SelectionEnd
=
"2011-01-01 12:03:06 AM"
MaxSelectionRange
=
"0.00:00:06"
MinSelectionRange
=
"0.00:00:06"
>
<
telerik:RadTimeBar.Resources
>
<
Style
TargetType
=
"telerik:ShadeControl"
>
<
Setter
Property
=
"Background"
Value
=
"Transparent"
/>
</
Style
>
</
telerik:RadTimeBar.Resources
>
<
telerik:RadTimeBar.Intervals
>
<
telerik:DayInterval
/>
<
telerik:HourInterval
/>
<
telerik:MinuteInterval
IntervalSpans
=
"1,5,10,15,30"
/>
<
telerik:SecondInterval
/>
</
telerik:RadTimeBar.Intervals
>
</
telerik:RadTimeBar
>
When I populate the time bar, I set all of the time values according to the order another forum post described:
this.tbChart.PeriodStart = adjustedStartTime;
this.tbChart.PeriodEnd = adjustedEndTime;
this.tbChart.VisiblePeriodStart = startTime;
this.tbChart.VisiblePeriodEnd = endTime;
this.tbChart.SelectionStart = startTime;
this.tbChart.SelectionEnd = startTime.AddSeconds(8);
this.tbChart.MinSelectionRange = TimeSpan.FromSeconds(6);
this.tbChart.MaxSelectionRange = TimeSpan.FromSeconds(6);
But the first time I do this, the visible period bar will take up the full width of the control and will not allow me to change its size. (It seems like neither the VisiblePeriod or the Selection values are actually displayed.) If I switch to another set of data, however, everything works fine. The visible period will be slightly less than the total size of the control and I'm allowed to zoom and scroll as I please. It doesn't seem to matter which set of data I select first.
Any ideas why this is happening?