Approved
Last Updated: 04 Jan 2017 07:34 by Andrew
ADMIN
Martin Ivanov
Created on: 02 Dec 2015 12:56
Category: TimeLine
Type: Bug Report
2
Timeline: Application hangs when the control is zoomed-in to a very deep level and then zoomed-out in a scenario with a big period range
The control's performance is low and in most cases the application hangs when you try to reset the control's zoom to its initial state. This happens in a scenario with big period range (for example 2 years) and when a MinuteInterval is defined. When you zoom-in to a level where the minutes are displayed and then you try to zoom out with the scrollbar (or if you change manually the VisiblePeriod to match the PeriodStart and PeriodEnd), the application hangs.

Workaround:
Remove the MinuteInterval from the Intervals collection just before changing the VisiblePeriod and then add it again in the collection. 

private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
    var interval = _timeline.Intervals.FirstOrDefault(i => i is Telerik.Windows.Controls.TimeBar.MinuteInterval);
 
    if (interval != null)
    {
        _timeline.Intervals.Remove(interval);
    }
 
    _timeline.VisiblePeriod = new SelectionRange<DateTime>(_timeline.PeriodStart, _timeline.PeriodEnd);
 
    if (interval != null)
    {
        _timeline.Intervals.Add(interval);
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
Andrew
Posted on: 17 Jun 2016 14:44
When is this going to be fixed as it is causing all sorts of issues when zoomed into minuteinterval?