Telerik Forums
UI for Xamarin Forum
2 answers
84 views
I would like to use a phone mask, using dataform
Jean
Top achievements
Rank 1
 answered on 02 Feb 2018
6 answers
210 views

I have a RadCartesianChart that needs to be updated regularly from a REST api, so I have placed the chart (and a few other controls) inside a RadBusyIndicator. When the data gets updated, the busy indicator shows and stays on for while updating the data, but when the busy indicator should go away and show the chart it throws an exception. This behaviour only happens on iOS, on Android and UWP it all goes as expected: no exception and the page is shown.

The details of the exception are:

{System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'TKExtendedChart'.
  at Foundation.NSObject.get_SuperHandle () [0x00015] in /Users/builder/data/lanes/5665/f70a1348/source/xamarin-macios/src/Foundation/NSObject2.cs:416 
  at TelerikUI.TKChart.get_WeakDataSource () [0x00025] in <5bae2bad360b4d5da328902516ddda38>:0 
  at TelerikUI.TKChart.get_DataSource () [0x00000] in <5bae2bad360b4d5da328902516ddda38>:0 
  at Telerik.XamarinForms.ChartRenderer.iOS.ChartSeriesAdapter`2[S,T].UpdateItemsSource (S sourceOwner, T targetOwner, TelerikUI.TKChart targetChart) [0x00006] in <7703bf205c0d44fb9c68eb78a97e22de>:0 
  at Telerik.XamarinForms.ChartRenderer.iOS.ChartSeriesAdapter`2[S,T].UpdateSeriesProperties (System.String propertyName, S sourceOwner, T targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) [0x00080] in <7703bf205c0d44fb9c68eb78a97e22de>:0 
  at Telerik.XamarinForms.ChartRenderer.iOS.CategoricalSeriesAdapter`1[TSeries].UpdateSeriesProperties (System.String propertyName, TSeries sourceOwner, TelerikUI.TKChartSeries targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) [0x00000] in <7703bf205c0d44fb9c68eb78a97e22de>:0 
  at Telerik.XamarinForms.ChartRenderer.iOS.BarSeriesAdapter.UpdateSeriesProperties (System.String propertyName, Telerik.XamarinForms.Chart.BarSeries sourceOwner, TelerikUI.TKChartSeries targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) [0x00000] in <7703bf205c0d44fb9c68eb78a97e22de>:0 
  at Telerik.XamarinForms.ChartRenderer.iOS.ChartSeriesAdapter`2[S,T].UpdateCore (S sourceOwner, T targetOwner, System.String propertyName, Telerik.XamarinForms.Common.IParentElement sourceOwnerRoot, System.Object targetOwnerRoot) [0x00015] in <7703bf205c0d44fb9c68eb78a97e22de>:0 
  at Telerik.XamarinForms.Chart.ChartElementFacadeAdapter`2[S,T].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <7703bf205c0d44fb9c68eb78a97e22de>:0 
  at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xfЕlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <be10754fe83d4f30b3bf0368f5628901>:0 
  at Telerik.XamarinForms.Chart.ChartElement.OnPropertyChanged (System.String propertyName) [0x00025] in <7703bf205c0d44fb9c68eb78a97e22de>:0 
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00107] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:594 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:391 
  at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:174 
  at Xamarin.Forms.BindingExpression.Apply (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property) [0x0006b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:77 
  at Xamarin.Forms.Binding.Apply (System.Object newContext, Xamarin.Forms.BindableObject bindObj, Xamarin.Forms.BindableProperty targetProperty) [0x00042] in D:\agent\_work\1\s\Xamarin.Forms.Core\Binding.cs:126 
  at Xamarin.Forms.BindableObject.ApplyBindings (System.Boolean skipBindingContext) [0x0003b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:422 
  at Xamarin.Forms.BindableObject.ApplyBindings () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:126 
 

Petar Marchev
Telerik team
 answered on 02 Feb 2018
3 answers
198 views
Hello. On RadListView missing a very important event - ItemАppearing. How do I know when I reached the last item to add more?
Tsvyatko
Telerik team
 answered on 31 Jan 2018
1 answer
195 views

Hi,

 

In Android Market there is an Telerik examples application. 

How will we do right and bottom drawer like screenshot?

https://preview.ibb.co/ntOCpR/Screenshot_20180129_213027.png" alt="Screenshot_20180129_213027

Thanks.

Lance | Senior Manager Technical Support
Telerik team
 answered on 29 Jan 2018
1 answer
282 views

Hi, I try to format a dateTime in my group template for Telerik Listview in Xamarin Forms.

    <ContentPage.Resources>
        <ResourceDictionary>
            <converters:HexToColorConverter x:Key="cnvHexToColor"></converters:HexToColorConverter>
            <converters:DateToGroupeConverter x:Key="cnvDateToGroupe"></converters:DateToGroupeConverter>
        </ResourceDictionary>
    </ContentPage.Resources>
 
AND ON THE LISTVIEW
            <telerikDataControls:RadListView.GroupDescriptors>
                <telerikListView:PropertyGroupDescriptor PropertyName="DateOnlyPlanif" SortOrder="Ascending" />
            </telerikDataControls:RadListView.GroupDescriptors>
            <telerikDataControls:RadListView.GroupHeaderTemplate>
                <DataTemplate>
                    <Grid BackgroundColor="#C1C1C1">
                        <Label Text="{Binding , Converter={StaticResource cnvDateToGroupe}}" TextColor="#303030" FontSize="Medium" HorizontalOptions="Center"/>
                    </Grid>
                </DataTemplate>
            </telerikDataControls:RadListView.GroupHeaderTemplate>

 

But the converter is never called. 

public class DateToGroupeConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        try
        {
            string retour = "";
            DateTime DatePlanifDebut = (DateTime)value;
 
            if (DatePlanifDebut == DateTime.MinValue)
            {
                retour = "- Aucune date planifiée -";
            }
            else
            {
                retour = DatePlanifDebut.Date.ToString("dddd, dd MMMM, yyyy", CultureInfo.CurrentCulture);
            }
 
            return retour;
        }
        catch (Exception ex)
        {
            ErrorHandling.LogError(ex);
            return "- Aucune date planifiée -";
        }
    }
 
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}

 

Any idea?

The same converter in an colum of the grid work ok.

 

Yana
Telerik team
 answered on 29 Jan 2018
1 answer
118 views

Hello Telerik Team, 

we have an Xamarin.Forms app where the user can display a RadCartesianChart with it's corresponding values in a ListView underneath. Inside the ListView the user can delete single values. And sometimes (not always) our app crashes with an unhandled exception on iOS. Below is the StackTrace:

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

 at Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartAdapter.UpdateXAxis (Telerik.XamarinForms.Chart.RadCartesianChart sourceOwner, TelerikUI.TKChart targetOwner) [0x00004] in <2c1279d14b694f6ebf395b400fc953c0>:0 

  at Telerik.XamarinForms.ChartRenderer.iOS.ChartSeriesAdapter`2[S,T].UpdateSeriesProperties (System.String propertyName, S sourceOwner, T targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) [0x00089] in <2c1279d14b694f6ebf395b400fc953c0>:0 
  at Telerik.XamarinForms.ChartRenderer.iOS.CategoricalSeriesAdapter`1[TSeries].UpdateSeriesProperties (System.String propertyName, TSeries sourceOwner, TelerikUI.TKChartSeries targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) [0x00000] in <2c1279d14b694f6ebf395b400fc953c0>:0 
  at Telerik.XamarinForms.ChartRenderer.iOS.CategoricalStrokedSeriesAdapter`1[TSeries].UpdateSeriesProperties (System.String propertyName, TSeries sourceOwner, TelerikUI.TKChartSeries targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) [0x00000] in <2c1279d14b694f6ebf395b400fc953c0>:0 
  at Telerik.XamarinForms.ChartRenderer.iOS.ChartSeriesAdapter`2[S,T].UpdateCore (S sourceOwner, T targetOwner, System.String propertyName, Telerik.XamarinForms.Common.IParentElement sourceOwnerRoot, System.Object targetOwnerRoot) [0x00015] in <2c1279d14b694f6ebf395b400fc953c0>:0 
  at Telerik.XamarinForms.Chart.ChartElementFacadeAdapter`2[S,T].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <2c1279d14b694f6ebf395b400fc953c0>:0 
  at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xfЕlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <18d6f5875866470caa321e95489d9b0e>:0 
  at Telerik.XamarinForms.Chart.ChartElement.OnPropertyChanged (System.String propertyName) [0x00025] in <2c1279d14b694f6ebf395b400fc953c0>:0 
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00107] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:594 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:391 
  at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:174 
  at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:56 
  at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__47_0 () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:551 
  at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/5665/f70a1348/source/xamarin-macios/src/Foundation/NSAction.cs:163 
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5665/f70a1348/source/xamarin-macios/src/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5665/f70a1348/source/xamarin-macios/src/UIKit/UIApplication.cs:63 
  at MyApp.MobileApp.Forms.iOS.Application.Main (System.String[] args) [0x00001] in /MyApp.MobileApp.Forms.iOS/Main.cs:12 

 

Maybe you can see something or can tell me if I'm doing something wrong? I have no chance at all to catch the exception and keep the app running. Maybe you can file a bug and fix it in a future version.

 

Kind regards

Chris

Ves
Telerik team
 answered on 26 Jan 2018
5 answers
1.3K+ views
How can I select a specific row programmatically... for example if my list have 10 items and on binding I want to select the 5th one.
Lance | Senior Manager Technical Support
Telerik team
 answered on 25 Jan 2018
2 answers
158 views
Hi,

Im having a problem with RadNumericInput, after I used  <telerikInput:RadNumericInput x:Name="numericInput" /> I have this error :

"SeverityCodeDescriptionProjectFileLineSuppression State
ErrorCS0234The type or namespace name 'RadNumericInput' does not exist in the namespace 'Telerik.XamarinForms.Input' (are you missing an assembly reference?)

Best Regards
Aridon
Aridon
Top achievements
Rank 1
 answered on 25 Jan 2018
3 answers
142 views
I have a Xamarin.Forms app using Telerik 2018.1 deployed to my Samsung Galaxy S7 (Android 7, API 24). When I use the MaskedInput control with a mask of (999) 999-9999 the app will crash if I attempt to use the paste function of the keyboard or enter a character after the mask is populated. In addition when trying to enter text in an empty mask it will skip characters and not populate correctly. I am getting results like this (2_1) ___ - 3_45.  It works fine in the Android emulator (Android 7.1, API 25). As it stands the MaskedInput control is completely useless.
Stefan Nenchev
Telerik team
 answered on 24 Jan 2018
1 answer
107 views

I was trying to create a chart where some of the values might be missing, using the following class for the chart data:

public class DashboardData
{
    public string Category { get; set; }
    public double? Value { get; set; }
}

 

When running on iOS I get the following exception when showing the chart (it works on Android and UWP):

 

System.NullReferenceException: Object reference not set to an instance of an object
  at Telerik.XamarinForms.ChartRenderer.iOS.ManagedChartDataSource.GetPoint (TelerikUI.TKChart chart, System.nuint dataIndex, System.nuint seriesIndex) [0x000c0] in <7703bf205c0d44fb9c68eb78a97e22de>:0
  at (wrapper managed-to-native) ApiDefinition.Messaging:void_objc_msgSendSuper_IntPtr (intptr,intptr,intptr)
  at TelerikUI.TKChart.set_XAxis (TelerikUI.TKChartAxis value) [0x00047] in <5bae2bad360b4d5da328902516ddda38>:0
  at Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartAdapter.UpdateXAxis (Telerik.XamarinForms.Chart.RadCartesianChart sourceOwner, TelerikUI.TKChart targetOwner) [0x0002e] in <7703bf205c0d44fb9c68eb78a97e22de>:0
  at Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartAdapter.UpdateCore (Telerik.XamarinForms.Chart.RadCartesianChart sourceOwner, Telerik.XamarinForms.ChartRenderer.iOS.TKExtendedChart targetOwner, System.String propertyName, Telerik.XamarinForms.Common.IParentElement sourceOwnerRoot, System.Object targetOwnerRoot) [0x0003f] in <7703bf205c0d44fb9c68eb78a97e22de>:0
  at Telerik.XamarinForms.ChartRenderer.iOS.BaseChartAdapter`1[S].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <7703bf205c0d44fb9c68eb78a97e22de>:0
  at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xfЕlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <be10754fe83d4f30b3bf0368f5628901>:0
  at Telerik.XamarinForms.ChartRenderer.iOS.BaseChartRenderer`1[T].OnElementAttached (T newElement) [0x00068] in <7703bf205c0d44fb9c68eb78a97e22de>:0
  at Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartRenderer.OnElementAttached (Telerik.XamarinForms.Chart.RadCartesianChart newElement) [0x00000] in <7703bf205c0d44fb9c68eb78a97e22de>:0
  at Telerik.XamarinForms.Common.iOS.IosRendererBase`2[S,T].OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1[TElement] e) [0x00037] in <be10754fe83d4f30b3bf0368f5628901>:0
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x00110] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:189
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:140
  at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:193
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0002a] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:77
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:45
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000cc] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:176
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:140
  at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:193
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0002a] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:77
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (System.Object sender, Xamarin.Forms.ElementEventArgs e) [0x0000f] in D:\agent\_work\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:129
  at Xamarin.Forms.Element.OnChildAdded (Xamarin.Forms.Element child) [0x00029] in D:\agent\_work\1\s\Xamarin.Forms.Core\Element.cs:375
  at Xamarin.Forms.VisualElement.OnChildAdded (Xamarin.Forms.Element child) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\VisualElement.cs:578
  at Xamarin.Forms.Layout`1[T].OnChildAdded (Xamarin.Forms.Element child) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\Layout.cs:32
  at Xamarin.Forms.Layout.OnInternalAdded (Xamarin.Forms.View view) [0x0001d] in D:\agent\_work\1\s\Xamarin.Forms.Core\Layout.cs:416
  at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00089] in D:\agent\_work\1\s\Xamarin.Forms.Core\Layout.cs:406
  at (wrapper delegate-invoke) <Module>:invoke_void_object_NotifyCollectionChangedEventArgs (object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.6.1.3/src/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:288
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.6.1.3/src/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:351
  at System.Collections.ObjectModel.ObservableCollection`1[T].InsertItem (System.Int32 index, T item) [0x00024] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.6.1.3/src/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:219
  at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.6.1.3/src/mono/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:67
  at Xamarin.Forms.ObservableWrapper`2[TTrack,TRestrict].Add (TRestrict item) [0x0004b] in D:\agent\_work\1\s\Xamarin.Forms.Core\ObservableWrapper.cs:35
  at Telerik.XamarinForms.Primitives.RadBusyIndicator.set_VisibleContent (Xamarin.Forms.View value) [0x00042] in <af0c70c9531f45dda8deaaa076f7473e>:0
  at Telerik.XamarinForms.Primitives.RadBusyIndicator.DisplayActualContent () [0x00017] in <af0c70c9531f45dda8deaaa076f7473e>:0
  at Telerik.XamarinForms.Primitives.RadBusyIndicator.OnIsBusyPropertyChanged (Telerik.XamarinForms.Primitives.RadBusyIndicator indicator, System.Boolean oldValue, System.Boolean newValue) [0x00000] in <af0c70c9531f45dda8deaaa076f7473e>:0
  at Telerik.XamarinForms.Common.BindablePropertyExtensions+<>c__DisplayClass6_0`2[TDeclarer,TPropertyType].<Create>b__0 (Xamarin.Forms.BindableObject b, System.Object o, System.Object n) [0x00000] in <be10754fe83d4f30b3bf0368f5628901>:0
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x0011b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:597
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:391
  at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:174
  at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:56
  at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__47_0 () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindingExpression.cs:547
  at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/5665/f70a1348/source/xamarin-macios/src/Foundation/NSAction.cs:163
--- End of stack trace from previous location where exception was thrown ---
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5665/f70a1348/source/xamarin-macios/src/UIKit/UIApplication.cs:79
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5665/f70a1348/source/xamarin-

 

If I alter double? to double in the data class and adjust the code accordingly then the chart shows as it should and there is no exception.

 
Ves
Telerik team
 answered on 24 Jan 2018
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?