ArgumentException on Zoom

2 posts, 0 answers
  1. Kornelije
    Kornelije avatar
    28 posts
    Member since:
    May 2011

    Posted 03 Apr 2012 Link to this post

    When I zoom the CartesianChart and go deep enough (it usually happens on second zooming attempt), the control throws the ArgumentException, crashing the application:

    System.ArgumentException: Value does not fall within the expected range.
    at System.Windows.Size..ctor(Double width, Double height) 
    at Telerik.Windows.Controls.ChartView.ChartPanAndZoomBehavior.UpdatePanAndZoom(Double startX, Double endX, Double startY, Double endY) 
    at Telerik.Windows.Controls.ChartView.ChartPanAndZoomBehavior.AdornerLayerMouseLeftButtonUp(Object sender, MouseButtonEventArgs e) 
    at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args) 
    at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)} 

    We have switched from RadChart to ChartView because of the Chart's problems with the Zoom, but it seems that this one has issues with the zooming too. 

    Why does the control throw an exception? Where can I catch the exception before it crashes my whole app?


  2. Yavor
    Yavor avatar
    401 posts

    Posted 06 Apr 2012 Link to this post

    Hello Kornelije,

    Thank you for your exception detail!

    Unfortunately we might need some more information in order to better understand what's going on. Will it be possible for you to prepare a small sample application that reproduces this exception?

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top