Second interval for large time period

2 posts, 0 answers
  1. Ahmad
    Ahmad avatar
    10 posts
    Member since:
    May 2015

    Posted 09 Jun 2015 Link to this post


    I have a large time period from 2010/1/1 to 2015/1/1 and I have a second interval support second for large range time

    When I zoom in into the intervals, the project became stopped because of a System.OutOFMemoryException Error.

    My questions :

    1- Dose I use virtualization in correct way ?

    2- Does the RadTimeLine Support the second interval for large period or my code is wrong?


    My code :

       <telerik:RadTimeline x:Name="RadTimeline1" 
                                     PeriodStart="{Binding StartDate, Mode=TwoWay}"
                                     PeriodEnd="{Binding EndDate, Mode=TwoWay}"
                                     ItemsSource="{Binding Data}">
                    <telerik:YearInterval />
                    <telerik:MonthInterval />
                    <telerik:WeekInterval />
                    <telerik:DayInterval />
                    <telerik:HourInterval />
                    <telerik:MinuteInterval />
                    <telerik:SecondInterval VirtualizingPanel.IsVirtualizing="True"/>

  2. Petar Marchev
    Petar Marchev avatar
    968 posts

    Posted 11 Jun 2015 Link to this post

    Hi Ahmad`,

    While the timeline does have a built-in virtualization mechanism for its visual items, it does not have this mechanism for the models (non visuals) it works with. In your case, the timeline is trying to create 157 million models (one model for each second in the 5 year range).

    We have this logged in our feedback portal where you can vote and track its status.

    As you see, the timeline does not support this specific case (large range and small intervals). We can only suggest that you implement some application-appropriate solution. For example, you can have one main control that shows the whole range (a calendar or a timeline). The user will be allowed to select a range in this control and the information contained in this range can be shown in the secondary timeline. The selection that the user can make in the main control must be limited to some maximum (say one week) so that you make sure that the secondary timeline does not have to create too many models.

    Hope this information is helpful, let us know if you have other questions.

    Petar Marchev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top