I am using RadControls for WPF build 2010.1.416.35. I have a radchart and define the SeriesMappings in XAML and when it tries to render the XAML below in VS2008 or Blend 3 I get the error "Invalid property or field - 'TimeStamp' for type: Double" in design view.
But when I only have 1 SeriesMapping everything works as expected. Is this a known bug, or am I missing something?
Everything compiles fine, and when I run the program it renders properly. Any help is appreciated.
Thanks,
Ryan
<telerik:RadChart x:Name="hydroChart" Margin="8,34,0,0" ItemsSource="{Binding DataPoints, Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Top" |
telerik:Theming.Theme="Summer"> |
<telerik:PointMark Size="1"> |
</telerik:PointMark> |
<telerik:RadChart.SamplingSettings> |
<telerik:SamplingSettings SamplingFunction="KeepExtremes" SamplingThreshold="50"/> |
</telerik:RadChart.SamplingSettings> |
<telerik:RadChart.AnimationSettings> |
<telerikChart:AnimationSettings ItemAnimationDuration="00:00:00" ItemDelay="00:00:00" DefaultSeriesDelay="00:00:00"/> |
</telerik:RadChart.AnimationSettings> |
<telerik:RadChart.DefaultView> |
<telerik:ChartDefaultView> |
<telerik:ChartDefaultView.ChartArea> |
<telerik:ChartArea NoDataString="No Data....." LegendName="chartLegend"> |
<telerikChart:ChartArea.AdditionalYAxes> |
<telerikChart:AxisY AutoRange="False" AxisName="TEMPER" DefaultLabelFormat="#VAL F" MaxValue="110" MinValue="50" Step="20" Title="Temperature in F"/> |
</telerikChart:ChartArea.AdditionalYAxes> |
<telerikChart:ChartArea.AxisY> |
<telerikChart:AxisY AutoRange="False" MinValue="0" MaxValue="25000" Step="1000" Title="PSI" AxisName="PSI"/> |
</telerikChart:ChartArea.AxisY> |
<telerik:ChartArea.AxisX> |
<telerik:AxisX LabelRotationAngle="90" LabelStep="2" Title="Time" IsDateTime="True" DefaultLabelFormat="#VAL{hh:mm:ss}"/> |
</telerik:ChartArea.AxisX> |
</telerik:ChartArea> |
</telerik:ChartDefaultView.ChartArea> |
<telerik:ChartDefaultView.ChartLegend> |
<telerik:ChartLegend x:Name="chartLegend" Header="In-Process Hydro" UseAutoGeneratedItems="True" ></telerik:ChartLegend> |
</telerik:ChartDefaultView.ChartLegend> |
</telerik:ChartDefaultView> |
</telerik:RadChart.DefaultView> |
<telerik:RadChart.SeriesMappings> |
<telerik:SeriesMappingCollection> |
<telerik:SeriesMapping LegendLabel="Inlet PSI"> |
<telerik:SeriesMapping.SeriesDefinition> |
<telerik:LineSeriesDefinition AxisName="PSI" ShowItemLabels="False" ShowItemToolTips="True" |
PointMarkItemStyle="{StaticResource PointMarkStyle}"> |
</telerik:LineSeriesDefinition> |
</telerik:SeriesMapping.SeriesDefinition> |
<telerik:SeriesMapping.ItemMappings> |
<telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" FieldType="sys:DateTime"/> |
<telerik:ItemMapping DataPointMember="YValue" FieldName="InletPressure" /> |
</telerik:SeriesMapping.ItemMappings> |
</telerik:SeriesMapping> |
<telerik:SeriesMapping LegendLabel="Outlet PSI"> |
<telerik:SeriesMapping.SeriesDefinition> |
<telerik:LineSeriesDefinition AxisName="PSI" ShowItemLabels="False" ShowItemToolTips="True" |
PointMarkItemStyle="{StaticResource PointMarkStyle}"/> |
</telerik:SeriesMapping.SeriesDefinition> |
<telerik:SeriesMapping.ItemMappings> |
<telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" FieldType="sys:DateTime"/> |
<telerik:ItemMapping DataPointMember="YValue" FieldName="OutletPressure" /> |
</telerik:SeriesMapping.ItemMappings> |
</telerik:SeriesMapping> |
<telerik:SeriesMapping LegendLabel="Ambient Temp"> |
<telerik:SeriesMapping.SeriesDefinition> |
<telerik:LineSeriesDefinition AxisName="TEMPER" ShowItemLabels="False" ShowItemToolTips="True" |
PointMarkItemStyle="{StaticResource PointMarkStyle}"/> |
</telerik:SeriesMapping.SeriesDefinition> |
<telerik:SeriesMapping.ItemMappings> |
<telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" FieldType="sys:DateTime"/> |
<telerik:ItemMapping DataPointMember="YValue" FieldName="NewAmbientTemp" /> |
</telerik:SeriesMapping.ItemMappings> |
</telerik:SeriesMapping> |
<telerik:SeriesMapping LegendLabel="Fluid Temp In"> |
<telerik:SeriesMapping.SeriesDefinition> |
<telerik:LineSeriesDefinition AxisName="TEMPER" ShowItemLabels="False" ShowItemToolTips="True" |
PointMarkItemStyle="{StaticResource PointMarkStyle}"/> |
</telerik:SeriesMapping.SeriesDefinition> |
<telerik:SeriesMapping.ItemMappings> |
<telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" FieldType="sys:DateTime"/> |
<telerik:ItemMapping DataPointMember="YValue" FieldName="NewFluidTempIn" /> |
</telerik:SeriesMapping.ItemMappings> |
</telerik:SeriesMapping> |
<telerik:SeriesMapping LegendLabel="Fluid Temp Out"> |
<telerik:SeriesMapping.SeriesDefinition> |
<telerik:LineSeriesDefinition AxisName="TEMPER" ShowItemLabels="False" ShowItemToolTips="True" |
PointMarkItemStyle="{StaticResource PointMarkStyle}"/> |
</telerik:SeriesMapping.SeriesDefinition> |
<telerik:SeriesMapping.ItemMappings> |
<telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" FieldType="sys:DateTime"/> |
<telerik:ItemMapping DataPointMember="YValue" FieldName="NewFluidTempOut" /> |
</telerik:SeriesMapping.ItemMappings> |
</telerik:SeriesMapping> |
</telerik:SeriesMappingCollection> |
</telerik:RadChart.SeriesMappings> |
<telerik:RadChart.DefaultSeriesDefinition> |
<telerik:LineSeriesDefinition LegendDisplayMode="SeriesLabel" ShowItemLabels="False" ShowItemToolTips="True"/> |
</telerik:RadChart.DefaultSeriesDefinition> |
</telerik:RadChart> |
But when I only have 1 SeriesMapping everything works as expected. Is this a known bug, or am I missing something?
Everything compiles fine, and when I run the program it renders properly. Any help is appreciated.
Thanks,
Ryan