Locked Visible Range

4 posts, 0 answers
  1. Joel
    Joel avatar
    41 posts
    Member since:
    Nov 2010

    Posted 26 Aug 2011 Link to this post

    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?
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 01 Sep 2011 Link to this post

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

  3. DevCraft banner
  4. Joel
    Joel avatar
    41 posts
    Member since:
    Nov 2010

    Posted 01 Sep 2011 Link to this post

    Thanks Tsvetie.  Is there a PITS entry for this issue or some other way for me to track this?
  5. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 03 Sep 2011 Link to this post

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

Back to Top