SeriesAppearanceSettings causing error

4 posts, 1 answers
  1. Dave
    Dave avatar
    17 posts
    Member since:
    Jan 2009

    Posted 10 Aug 2010 Link to this post

    Sorry for the duplicate, the server throw an error on Post......

    I'm trying to change the fill color on a series and using the SeriesAppearanceSettings throws an error. Is there a trick in changing the fill color?

    This is the xaml:

    <telerik:StackedBarSeriesDefinition StackGroupName="IssueName" ><br>
      <telerik:StackedBarSeriesDefinition.Appearance><br>
         <telerik:SeriesAppearanceSettings Fill="Brown" /><br>
      </telerik:StackedBarSeriesDefinition.Appearance><br>
    </telerik:StackedBarSeriesDefinition><br>

    This is the error:
    Delegate to an instance method cannot have null 'this'

      at System.MulticastDelegate.ThrowNullThisInDelegateToInstance()
       at Telerik.Windows.Controls.Charting.SeriesDefinition.DetachEvents()
       at Telerik.Windows.Controls.Charting.BarSeriesDefinition.DetachEvents()
       at Telerik.Windows.Controls.Charting.SeriesDefinition.Clone()
       at Telerik.Windows.Controls.Charting.DataBindingHelper.AssignSeriesDefinitionFromMapping(ISeriesDefinition defaultSeriesDefinition, SeriesMapping seriesMapping, DataSeries boundSeries)
       at Telerik.Windows.Controls.Charting.DataBindingHelper.CreateDataSeriesBasedOnRawData(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, ISeriesDefinition defaultSeriesDefinition)
       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.ProcessGroupingNoAggregation(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState, Int32 seriesCount)
       at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessGrouping(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 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 Telerik.Windows.Controls.RadChart.set_ItemsSource(Object value)
       at THMManager.Controls.Dashboard.DashboardTrendingChart.Control_Loaded(Object sender, RoutedEventArgs e)
       at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
  2. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 11 Aug 2010 Link to this post

    Hello Dave,

    Indeed we were able to reproduce the problematic behavior in our local tests as well -- the fix will be included in the official service pack release that should become public by the end of the week.

    Sorry for the temporary inconvenience. We have updated your Telerik points for the report as well.


    All the best,
    Freddie
    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. Dave
    Dave avatar
    17 posts
    Member since:
    Jan 2009

    Posted 12 Aug 2010 Link to this post

    Thanks! You guys are awesome, I got release 812, everything fixed,
  5. David Brubacher
    David Brubacher avatar
    29 posts
    Member since:
    Mar 2010

    Posted 12 Aug 2010 Link to this post

    So are you saying that just as I implemented the work-around version 812 makes it unnecessary? :-)

    Finally I can set Appearance in XAML!
Back to Top