This is a migrated thread and some comments may be shown as answers.

SeriesAppearanceSettings causing error

3 Answers 54 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dave
Top achievements
Rank 1
Dave asked on 10 Aug 2010, 08:20 PM
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)

3 Answers, 1 is accepted

Sort by
0
Accepted
Giuseppe
Telerik team
answered on 11 Aug 2010, 01:52 PM
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
0
Dave
Top achievements
Rank 1
answered on 12 Aug 2010, 09:46 PM
Thanks! You guys are awesome, I got release 812, everything fixed,
0
David Brubacher
Top achievements
Rank 1
answered on 12 Aug 2010, 09:54 PM
So are you saying that just as I implemented the work-around version 812 makes it unnecessary? :-)

Finally I can set Appearance in XAML!
Tags
Chart
Asked by
Dave
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Dave
Top achievements
Rank 1
David Brubacher
Top achievements
Rank 1
Share this question
or