Telerik Forums
UI for Xamarin Forum
1 answer
261 views

An error occurred: 'Object reference not set to an instance of an object.'. Callstack: '  at Telerik.XamarinForms.PrimitivesRenderer.iOS.SideDrawerRenderer.OnElementAttached (Telerik.XamarinForms.Primitives.RadSideDrawer newElement) <0x103c213b8 + 0x00054> in <3815ecfd73d84df698419fd5cca8ff43>:0 
  at Telerik.XamarinForms.Common.iOS.IosRendererBase`2[S,T].OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1[TElement] e) <0x112c3a4f0 + 0x00062> in <e4beb37b571e46a0993fb50802f2986c>:0 

 

I get this error on Iphone 5s & Ipad mini with the demo code for sidedraw

 

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             xmlns:local="clr-namespace:TelerikXamarinApp1.Portable"
             xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
             xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
             xmlns:telerikChart="clr-namespace:Telerik.XamarinForms.Chart;assembly=Telerik.XamarinForms.Chart"
             xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
             xmlns:telerikGauges="clr-namespace:Telerik.XamarinForms.DataVisualization.Gauges;assembly=Telerik.XamarinForms.DataVisualization"
             xmlns:telerikGrid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
             xmlns:telerikBarcode="clr-namespace:Telerik.XamarinForms.Barcode;assembly=Telerik.XamarinForms.Barcode"
             xmlns:telerikConversationalUI="clr-namespace:Telerik.XamarinForms.ConversationalUI;assembly=Telerik.XamarinForms.ConversationalUI"
             xmlns:telerikImageEditor="clr-namespace:Telerik.XamarinForms.ImageEditor;assembly=Telerik.XamarinForms.ImageEditor"
             xmlns:telerikMap="clr-namespace:Telerik.XamarinForms.Map;assembly=Telerik.XamarinForms.Map"
             xmlns:telerikPdfViewer="clr-namespace:Telerik.XamarinForms.PdfViewer;assembly=Telerik.XamarinForms.PdfViewer"
             xmlns:telerikRichTextEditor="clr-namespace:Telerik.XamarinForms.RichTextEditor;assembly=Telerik.XamarinForms.RichTextEditor"
             x:Class="TelerikXamarinApp1.Portable.MainPage">

    <telerikPrimitives:RadSideDrawer x:Name="drawer" DrawerLength="200">
        <telerikPrimitives:RadSideDrawer.MainContent>
            <Label Text="Main content" />
        </telerikPrimitives:RadSideDrawer.MainContent>
        <telerikPrimitives:RadSideDrawer.DrawerContent>
            <Label Text="Drawer content" />
        </telerikPrimitives:RadSideDrawer.DrawerContent>
    </telerikPrimitives:RadSideDrawer>

</ContentPage>
Steven
Top achievements
Rank 1
Iron
 answered on 28 Jun 2021
0 answers
447 views

Hi,

I'm trying out the telerik xamarin controls and I have started with looking at the sample applications. I can run the Tagit and Todo apps successfully on android but when I try IOS I get the following, any ideas? many thanks, Andy -

 

Drilling down into the inner exceptions I see -

The type initializer for 'Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell' threw an exception.

And finally -

Method not found: void Xamarin.Forms.BindableObjectExtensions.SetAppThemeColor(Xamarin.Forms.BindableObject,Xamarin.Forms.BindableProperty,Xamarin.Forms.Color,Xamarin.Forms.Color)

Andy
Top achievements
Rank 2
 updated question on 28 Jun 2021
2 answers
150 views

Hello,

Using your RadShapeRating or RadSegmentedControl component, I have had the following problem.
I have a list of these components within a collectionView, they are generated dynamically and therefore I don't know how many of them I will have. How are these components designed to manage which of them has been clicked and therefore apply its value to the element of the list where it is located? Why they dont have a commandparameter like function, so we can pass across them a param like the id of the element of the list?

 

 

                <CollectionView Grid.Row="2" ItemsSource="{Binding ListaOpciones}" SelectionMode="None" x:Name="myList">
                    <CollectionView.ItemTemplate>
                        <DataTemplate>
                            <Grid BackgroundColor="#E8E8E8">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="2*" />
                                    <ColumnDefinition Width="3*" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Label Grid.Column="0" Text="{Binding opcion}" TextColor="Black" FontSize="17" Padding="15,5,5,2"></Label>

                                <telerikInput:RadShapeRating Grid.Column="1"  HeightRequest="30" WidthRequest="30" ItemsSpacing="6" 
                                                             ItemsCount="{Binding puntuacion}" VerticalOptions="Center"
                             ItemFill="LightGoldenrodYellow"
                             ItemStroke="Black"
                             SelectedItemFill="Yellow"
                             SelectedItemStroke="#efefef" />
                            </Grid>
                        </DataTemplate>
                    </CollectionView.ItemTemplate>
                </CollectionView>

I  want to achieve the next functionality: Every time a radShapeRating is rate i have to update the value of my "ListaOpciones<Options>"  element withe the value of  RadShapeRating.

Thanks for your help.

Regards.

XTZ
Top achievements
Rank 1
Iron
 answered on 25 Jun 2021
1 answer
439 views

Hi,

I am exploring RadChat for Xamarin forms and wanted to know what is the most efficient way for:

  1. saving the chat messages to a database
  2. loading existing messages for a chat

Thanks,

Abhi

Lance | Senior Manager Technical Support
Telerik team
 updated answer on 16 Jun 2021
1 answer
126 views
Please see the attachment I want to change 85 to 85%
Didi
Telerik team
 answered on 16 Jun 2021
0 answers
115 views
Show the comparison before and after switching the theme in the attachment
guo
Top achievements
Rank 1
Iron
 asked on 16 Jun 2021
1 answer
107 views
如何用C#代码实现这个开关,谢谢
Alex
Telerik team
 answered on 09 Jun 2021
1 answer
156 views

hi good days to all,

i go through example source code here  https://github.com/telerik/telerik-xamarin-forms-samples/blob/master/QSF/QSF/Examples/DataFormControl/ReservationsExample/DataFormView.xaml.cs

validation is done through code behind :


private void DoneButton_Clicked(object sender, EventArgs e)
        {
            this.dataForm.FormValidationCompleted += DataForm_FormValidationCompleted;
            this.dataForm.ValidateAll();
        }

I'm using command binding in button to call delegate command in mvvm.  Is it  possible to call ValidateAll() from within mvvm or specific method to achieve this ? 

UMP
Top achievements
Rank 1
Iron
 updated question on 08 Jun 2021
1 answer
263 views
Hello, may I ask, the dark theme of Andriod and IOS, the setting does not change with the system, what should I do?
Yana
Telerik team
 answered on 04 Jun 2021
1 answer
600 views

Hi,

Our team is planning to apply Telerik UI for our Xamarin Forms application specifically on Calendar and Scheduling functionality. Before buying the said product, we would want to explore it first using the free trial. I installed the Telerik UI for Xamarin package on my Mac and I can't seem to install it. I am getting this message, is there a newer version for this trial package?



Moreover, Telerik.UI.for.Xamarin is not available on the nuget package when I add it as per advised on the documentation here (https://docs.telerik.com/devtools/xamarin/installation-and-deployment/telerik-nuget-server#add-telerik-ui-for-xamarin-pack-in-visual-studio-for-mac ) Is there a newer documentation for this one?

Hoping someone can help. Thank you.

Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?