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

Crash on InitializeComponent

1 Answer 143 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Simeon
Top achievements
Rank 1
Simeon asked on 26 Jul 2018, 03:39 PM

I am running Xamarin Forms version 3.1.0.637273. When running InitializeComponent on a page with a RadCartesianChart on. A fatal exception occurs within the Telerik framework during a type conversion of Telerik.XamarinForms.Chart.ChartSelectionBehavior to type Xamarin.Forms.Behavior.

Can anyone else confirm this?

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 26 Jul 2018, 03:51 PM
Hi Simeon,

To prevent conflicts with Xamarin.Forms behaviors, we've changed the way you add Chart Behaviors to the UI for Xamarin Chart.  As of 2018.2.620, you now add any chart behaviors to the ChartBehaviors collection. 

You can see the recently added note in the ChartSelectionBehavior documentation, for your convenience here's an example:

<telerikChart:RadCartesianChart>
  <telerikChart:RadCartesianChart.ChartBehaviors>
    <telerikChart:ChartSelectionBehavior  ...  />
  </telerikChart:RadCartesianChart.ChartBehaviors>
</telerikChart:RadCartesianChart>

If you have any further trouble, please open a Support Ticket here to share the code you're using and I'll investigate directly as soon as I see the ticket come in.

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Simeon
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or