Completed
Last Updated: 11 Jan 2024 08:20 by ADMIN
Release R2 2023
andrizu
Created on: 05 Oct 2016 08:18
Category: TimeBar
Type: Bug Report
3
TimeBar: ArgumentOutOfRangeExceotion thrown when zoom out via the mouse wheel
If the PeriodStart and VisiblePeriodStart is set to DateTime.MinValue zooming out using mouse wheel causes a crash. DateTime.Subract(TimeSpan value) method throws "ArgumentOutOfRangeException();". Looks like "TimeBarBase.CalculateLeftRightStep(this.SmallChange, centerOffsetPercentage, out leftStep, out rightStep);" does not calculate leftStep correctly.
5 comments
ADMIN
Dimitar
Posted on: 19 Dec 2023 12:53

Hello Bilge,

We have tested this and it appears that it is fixed along with another issue. The does not occur in the latest version of the suite. 

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

bilge
Posted on: 19 Dec 2023 08:04
Hello Dimitar,

I am using Telerik.Windows.Controls version: 2021.2.511.45 
ADMIN
Dimitar
Posted on: 19 Dec 2023 06:15

Hello Bilge,

We will review the issue and see if we can fix it. Which version of the suite are you currently using?

I am looking forward to your reply.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

bilge
Posted on: 18 Dec 2023 12:22

I have the exact same exception during zooming out. Here is the stack trace for the issue :

Stack Trace:

   at System.DateTime.Subtract(TimeSpan value)
   at Telerik.Windows.Controls.TimeBarBase.ZoomOut(Double centerOffsetPercentage)
   at Telerik.Windows.Controls.TimeBarBase.OnMouseWheel(MouseWheelEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at -.dje_zAQG4QXAUTAXTGKYLAMESW_ejd.Main()

Will there be any update in this regard?

ADMIN
Martin
Posted on: 11 Oct 2016 10:14
Hi Andrius

Thank you for the report. We reproduce this also on our side and we are going to approve this item.

Regards,
Martin Ivanov,
Technical Support Engineer