Has anyone ever seen an exception coming from the CategoryDateTimeXAxis like this. I get this error on a very simple chart where the xAxis minimum value is set to DateTime of Ticks = 439832878.
InnerException: System.ArgumentOutOfRangeException
Message=Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks
Source=mscorlib
ParamName=ticks
StackTrace:
at System.DateTime..ctor(Int64 ticks)
at Infragistics.Controls.Charts.CategoryDateTimeXAxis.RenderAxisOverride(Boolean animate)
at Infragistics.Controls.Charts.Axis.DoRenderAxis(Boolean animate)
at Infragistics.Controls.Charts.ContentInfo.DoRefresh()
at Infragistics.Controls.Charts.ChartContentManager.DoRefresh()
InnerException:
Thanks.
Great!! Thanks for your help.
Sudnya
Hello Sudnya,
I have noticed that you use NetAdvantage 12.2 and I tested the sample against its latest service release and I was able to reproduce the issue, but since we no longer provide fixes for this version I can suggest you download one of our supported ones (13.1, 13.2, 14,1), where the issue no longer occurs.
Hi Stefan.
Now I looked at your solution. However, I still don't know understand what I may be doing wrong and any feedback is greatly appreciated.
Thank you for your reply. I haven't looked at your solution yet because the VS is not compatible. I am using VS2010. But here is a non-working version one of the engineers have created.
If you look at the TestVM.cs, we have clearly marked what works and what doesn't work. Another thing to note is that if you keep the line that doesn't work in the TestVM.cs but modify the MainWindow.xaml.cs as per our comments, it works.
Thanks for your help and looking forward to hearing your comments.
Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.