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

Second interval for large time period

1 Answer 105 Views
TimeLine
This is a migrated thread and some comments may be shown as answers.
Ahmad
Top achievements
Rank 1
Ahmad asked on 09 Jun 2015, 01:49 PM

Hi,

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}"
                                 StartPath="Date"
                                 DurationPath="Duration"
                                 IsSelectionEnabled="True"
                                 SelectionMode="Extended"
                                 VirtualizingPanel.IsVirtualizing="True"
                                 ItemsSource="{Binding Data}">
            <telerik:RadTimeline.Intervals>
                <telerik:YearInterval />
                <telerik:MonthInterval />
                <telerik:WeekInterval />
                <telerik:DayInterval />
                <telerik:HourInterval />
                <telerik:MinuteInterval />
                <telerik:SecondInterval VirtualizingPanel.IsVirtualizing="True"/>
            </telerik:RadTimeline.Intervals>
        </telerik:RadTimeline>

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 11 Jun 2015, 11:03 AM
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.

Regards,
Petar Marchev
Telerik
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
Tags
TimeLine
Asked by
Ahmad
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or