Guys,
I'm getting following error when I'm trying to Implement xamDataChart with RIA Services
Here is my xaml code
<Grid x:Name="LayoutRoot" Background="White">
<riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:vwTranDtl, CreateList=true}" Height="0" LoadedData="vwTranDtlDomainDataSource_LoadedData" Name="vwTranDtlDomainDataSource" QueryName="GetVwTranDtlsQuery" Width="0">
<riaControls:DomainDataSource.DomainContext>
<my:CSFContext />
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
<igChart:XamDataChart
DataContext="{Binding ElementName=vwTranDtlDomainDataSource, Path=Data}"
Name="xamDataChart1">
<igChart:XamDataChart.Axes>
<igChart:CategoryDateTimeXAxis x:Name="XAxis1" VerticalAlignment="Top"
ItemsSource="{Binding}" DateTimeMemberPath="TransactionDate"
Label="{}{Date:d}">
</igChart:CategoryDateTimeXAxis>
</igChart:XamDataChart.Axes>
<igChart:XamDataChart.Series>
<igChart:LineSeries
Title="277"
Legend="{Binding ElementName=Legend1}"
XAxis="{Binding ElementName=XAxis1}"
YAxis="{Binding ElementName=YAxis1}"
MarkerType="None"
Brush="Aqua"
BorderThickness="2"
ItemsSource="{Binding}"
ValueMemberPath="C277"/>
<igChart:LineSeries Title="278"
Brush="Black"
ValueMemberPath="C278"/>
</igChart:XamDataChart.Series>
</igChart:XamDataChart>
</Grid>
When I'm executing this I'm getting error as follows
I'm using following references to my silverlight project.
InfragisticsSL4.Controls.Charts.XamDataChart.v10.2
InfragisticsSL4.DataVisualization.v10.2
InfragisticsSL4.v10.2
Silverlight Toolkit Common Controls.Toolkit
Please let me know what's wrong with this..?
Hi,
Before we get started, have you tried this with the latest service release? This has the sound of an error that was in the RTM version of the axis that has since been resolved.
-Graham
Hi,I'm currently evaluating the DataChart control (Silverlight). I'm running in the same problem.I have downloaded a sample (RIA services and the IGSample database). The sample works but when I try with my own database the above error shows up. It seems that the error happens in the DateTime axis:Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException() at Infragistics.Controls.Charts.CategoryDateTimeXAxis.RenderAxis(Boolean animate) at Infragistics.Controls.Charts.Axis.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue) at Infragistics.Controls.Charts.CategoryAxisBase.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue) at Infragistics.Controls.Charts.CategoryDateTimeXAxis.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue) at Infragistics.Controls.Charts.Axis.<.ctor>b__4(Object o, PropertyUpdatedEventArgs e) at Infragistics.Controls.Charts.Axis.RaisePropertyChanged(String name, Object oldValue, Object newValue) at Infragistics.Controls.Charts.Axis.<.cctor>b__25(DependencyObject sender, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue) at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet) at Infragistics.Controls.Charts.Axis.set_Label(Object value)Sometimes that error also shows up in the designer (load error).The difference to the IGSample database is that I have DateTime values (contain date and time values) and roughly 40000 records. I have no idea which index is wrong. The RIA service seems to work (if I use the data grid I can page through all values easily).
By the way - posting to this site does not work with ie9 - I had to use firefox ;-)
Could you please either provide the stack trace from that exception or a sample project that replicates the issue. There are a bit too many moving parts to make any conclusions from your description alone.
Thanks,
Graham
I'm using Infragistics NetAdvantage 2010.2 Silverlight DV
InfragisticsSL4.Controls.Charts.XamDataChart.v10.2.dll
Thanks & Regards,
Sandip