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

Trouble with VisiblePeriodEnd with large PeriodStart/PeriodEnd range

1 Answer 87 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joe
Top achievements
Rank 1
Joe asked on 22 Jun 2012, 05:40 PM
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

 

 

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 25 Jun 2012, 02:30 PM
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 >>

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