Completed
Last Updated: 28 Sep 2021 15:04 by ADMIN
Release LIB 2021.3.1004 (4 Oct 2021)
ADMIN
Martin Ivanov
Created on: 02 Dec 2015 12:56
Category: TimeLine
Type: Bug Report
3
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);
    }
}
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?