Crash on InitializeComponent

2 posts, 0 answers
  1. Simeon
    Simeon avatar
    27 posts
    Member since:
    Jul 2012

    Posted 26 Jul 2018 Link to this post

    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?

  2. Lance | Manager Technical Support
    Admin
    Lance | Manager Technical Support avatar
    1195 posts

    Posted 26 Jul 2018 Link to this post

    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
Back to Top