Trouble with VisiblePeriodEnd with large PeriodStart/PeriodEnd range

2 posts, 0 answers
  1. Joe
    Joe avatar
    31 posts
    Member since:
    Apr 2012

    Posted 22 Jun 2012 Link to this post

    I am having trouble with the VisiblePeriodStart and VisiblePeriodEnd when PeriodStart and PeriodEnd span is large.  The visable area is displaying much more than I have asked to display.  I am using two way binding and am setting the properties in the order you have suggested.

    The period range is 2010/01/01 - 2014/12/31.  I only want 1 week to display for the Visible Period.  My Visible range is set to 2012/05/01 - 2012/05/07.

    Here is the XAML
     

         <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadTimeBar x:Name="RadTimeBar1"
                                Height="100"
                                PeriodStart="{Binding StartPeriod, Mode=TwoWay}"
                                PeriodEnd="{Binding EndPeriod, Mode=TwoWay}"
                                VisiblePeriodStart="{Binding VisibleStartPeriod, Mode=TwoWay}"
                                VisiblePeriodEnd="{Binding VisibleEndPeriod, Mode=TwoWay}"
                                SelectionStart="{Binding SelectionStartPeriod, Mode=TwoWay}"
                                SelectionEnd="{Binding SelectionEndPeriod, Mode=TwoWay}">
                <telerik:RadTimeBar.Intervals>
                    <telerik:DayInterval />
                    <telerik:WeekInterval />
                    <telerik:MonthInterval />
                </telerik:RadTimeBar.Intervals>
            </telerik:RadTimeBar>
        </Grid>

    Here is the constructor of my ViewModel

            public TestBindingsViewModel()
            {
                StartPeriod = new DateTime(2010, 1, 1);
                EndPeriod = new DateTime(2014, 12, 31);
                VisibleStartPeriod  = new DateTime(2012, 5, 1);   
                VisibleEndPeriod  = new DateTime(2012, 5, 7);
                SelectionStartPeriod  = new DateTime(2012, 5, 2);
                SelectionEndPeriod  = new DateTime(2012, 5, 2);
            }

    Thank you

     

     

  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 25 Jun 2012 Link to this post

    Hi Craig,

    Due to a limitation in Silverlight framework, we have enforced a constraint for zoom-in to maximum of 30 000 pixels. That is why, depending on the period range that the timebar shows, the minimum visible range that can be displayed, might be different from the visible range that you have specified. I suppose that you have hit this limitation. 

    We are researching ways to remove this constraint in some specific cases, but I cannot give you an estimate when the update will be available.

    Greetings,
    Tsvetie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top