This is a migrated thread and some comments may be shown as answers.

Locked Visible Range

3 Answers 72 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 26 Aug 2011, 08:02 PM
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):
<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?

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 01 Sep 2011, 07:30 AM
Hi Joel,
We are aware of this problem and we will do our best to fix it for the next service pack, scheduled for the middle of September.

Regards,
Tsvetie
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Joel
Top achievements
Rank 1
answered on 01 Sep 2011, 01:46 PM
Thanks Tsvetie.  Is there a PITS entry for this issue or some other way for me to track this?
0
Tsvetie
Telerik team
answered on 03 Sep 2011, 09:37 AM
Hello Joel,
Yes, here is a link to the PITS item:

http://www.telerik.com/support/pits.aspx#/public/silverlight/7713.

Kind regards,
Tsvetie
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
TimeBar
Asked by
Joel
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Joel
Top achievements
Rank 1
Share this question
or