Binding exception

7 posts, 0 answers
  1. Adiel
    Adiel avatar
    60 posts
    Member since:
    Jun 2012

    Posted 08 Apr 2010 Link to this post

    Hi
    I'm trying to populate a char with StackedBar1003DSeriesDefinition series mapping with data from server.
    The application crashe with exception.

    The data is list of type:
     public class StackBarModel  
        {  
            public object XValue { getset; }  
            public int[] YValues { getset; }  
        } 
    the list contain one item:
    XValue = {06/04/2010 00:00:00} (DateTime)
    YValue = 1,2,2,0,0

    The binding  is:

     <Charting:SeriesMapping.ItemMappings> 
                            <Charting:ItemMapping DataPointMember="XValue" 
                                                  FieldName="XValue" /> 
                            <Charting:ItemMapping DataPointMember="YValue" 
                                                  FieldName="YValue" /> 
     </Charting:SeriesMapping.ItemMappings> 

    The error is:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E)
    Timestamp: Thu, 8 Apr 2010 12:58:15 UTC

    Message: Unhandled Error in Silverlight Application
    Code: 4004   
    Category: ManagedRuntimeError      
    Message: System.NullReferenceException: Object reference not set to an instance of an object.
       at Telerik.Windows.Controls.Charting.DataBindingHelper.AssignMappingFieldTypes(QueryableCollectionView dataEngine, SeriesMapping seriesMapping)
       at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessNoGrouping(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState, Int32 seriesCount)
       at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMapping(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState, Int32 seriesCount)
       at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMappings(SeriesMappingCollection seriesMappings, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState)
       at Telerik.Windows.Controls.Charting.DataBindingHelper.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ISeriesDefinition defaultSeriesDefinition, ChartFilterDescriptorCollection globalFilterDescriptors, ChartSortDescriptorCollection globalSortDescriptors, SamplingSettings samplingSettings, ZoomScrollSettings zoomScrollSettings, AxisRangeState axisXRangeState)
       at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ChartArea chartArea)
       at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData)
       at Telerik.Windows.Controls.RadChart.Rebind(Object originalData)
       at Telerik.Windows.Controls.RadChart.Rebind()
       at Telerik.Windows.Controls.RadChart.OnApplyTemplate()
       at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)    

    Line: 56
    Char: 13
    Code: 0

     
    Thanks
    Adiel

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 13 Apr 2010 Link to this post

    Hi Adiel,

    Our developers have already addressed this problem. Please, download the latest internal build and give it a try.

    Best regards,
    Ves
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Kerwin Smith
    Kerwin Smith avatar
    1 posts
    Member since:
    Jun 2008

    Posted 26 Apr 2010 Link to this post

    I'm getting a similar error with the latest build : 2010.1.422.1030

        public class HistoricalChartData  
        {  
            public string Quarter { getset; }  
            public double Value1 { getset; }  
            public double Value2 { getset; }  
        } 

    System.NullReferenceException: Object reference not set to an instance of an object.

    at Telerik.Windows.Controls.Charting.DataBindingHelper.AssignMappingFieldTypes(QueryableCollectionView dataEngine, SeriesMapping seriesMapping)
    at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessNoGrouping(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState, Int32 seriesCount)
    at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMapping(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState, Int32 seriesCount)
    at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMappings(SeriesMappingCollection seriesMappings, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState)
    at Telerik.Windows.Controls.Charting.DataBindingHelper.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ISeriesDefinition defaultSeriesDefinition, ChartFilterDescriptorCollection globalFilterDescriptors, ChartSortDescriptorCollection globalSortDescriptors, SamplingSettings samplingSettings, ZoomScrollSettings zoomScrollSettings, AxisRangeState axisXRangeState)
    at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ChartArea chartArea)
    at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData)
    at Telerik.Windows.Controls.RadChart.Rebind(Object originalData)
    at Telerik.Windows.Controls.RadChart.ItemsSourcePropertyChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
    at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
    at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object newValue, Object oldValue)
    at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle, PropertyInvalidationReason reason)
    at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
    at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
    at Telerik.Windows.Controls.RadChart.set_ItemsSource(Object value)
    at IndustryReport.Models.HistoricalChart.LoadHistoricalRateChartCompleted(LoadOperation`1 Entity)}
  5. Paulius Putna
    Paulius Putna avatar
    16 posts
    Member since:
    Feb 2010

    Posted 26 Apr 2010 Link to this post

  6. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 29 Apr 2010 Link to this post

    Hi everyone,

    Can you send us a small example reproducing the error so that we can investigate it? Thanks.

    Best regards,
    Ves
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Duncan Bayne
    Duncan Bayne avatar
    9 posts
    Member since:
    May 2010

    Posted 20 May 2010 Link to this post

    I have been able to consistently reproduce the problem - although I'm not sure whether it's a bug, or whether I'm doing something wrong.

    I have submitted support ticket 311978 which contains a VS 2010 solution that reproduces the problem.  You can also download the VS 2010 solution from my blog:

    http://www.fluidscape.co.nz/files/TelerikBug1.zip

  8. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 26 May 2010 Link to this post

    Hello Duncan Bayne,

    Please, find below my answer, provided in the support ticket you have started:

    This has been fixed by our developers. Please, download and use the latest internal build - version 2010.1.0521.1040. Please, mind the last number - for Silverlight 4 it should be 1040, the 1030 assemblies are built against Silverlight 3.

    Best regards,
    Ves
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
DevCraft banner