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

ArgumentException on Zoom

1 Answer 87 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Kornelije
Top achievements
Rank 1
Kornelije asked on 03 Apr 2012, 01:49 PM

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?

Thanks

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Apr 2012, 09:12 AM
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?

Greetings,
Yavor
the Telerik team

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

Tags
ChartView
Asked by
Kornelije
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or