Telerik Forums
UI for Xamarin Forum
1 answer
12 views

Hi, I need to create RadDataGrid in xamarin forms programmatically. it only creates the header and it's fine. But when I insert new data in ItemSource there has no new row added in UI while ItemSource already updated with new row data. I have tried in several ways and still, there has no progress. Have any other options to add a data row in RadDataGrid? code snippets are attached.

 


  private readonly RadDataGrid dataGrid = new RadDataGrid() { IsEnabled = true, AutoGenerateColumns = false };
  private List<GridModel> dataSource = new List<GridModel>(); 

  public async Task DoSetup()
        {
             Grid outermost = this.GetOutermostGrid();
             this.Content = outermost;
             AddHeaderRow(columsList);
             dataGrid.ItemsSource = dataSource;
             outermost.Children.Add(dataGrid);
             Grid.SetColumn(dataGrid, 0);
        }

private void AddHeaderRow(IEnumerable<string> headers)
        {
            foreach (string s in headers)
            {
                this.dataGrid.Columns.Add(new DataGridTextColumn() { HeaderText = s, SizeMode = DataGridColumnSizeMode.Stretch, Name = s, PropertyName = s });
            }
        }

private void AddNewRow(GridModel model)
        {
            //dataSource.Add(model);
            //dataGrid.ItemsSource = dataSource;
            (dataGrid.ItemsSource as List<GridModel>).Add(model);
        }

Lance | Manager Technical Support
Telerik team
 answered on 30 Apr 2021
1 answer
6 views

Im trying to install Telerik UI for Xamarin tools for Visual Studio for Mac by following the instructions here. Section "Download the controls", step 5.

When opening the "ProjectTemplateXamarin.mpack" file. I get the following error message:

The selected extension packages can't be installed because there are dependency conflicts. The package '::Xamarin.FormsPreviewer v4.15' could not be found in any repository.

The following packages will be installed: Telerik Xamarin Add-in v2021.1.413 (in user directory)

The follwing dependencies could not be resolved: ::Xamarin.FormsPreviewer v4.15

------------------------------------------------------------------------------------------------------------

What can I do to resolve this issue? Is there another way to install the extensions?

I assume this error has something to do with the warning bulletin in this article.

 

Thank you

Yana
Telerik team
 answered on 29 Apr 2021
1 answer
21 views
.NET Core 2.0 Support
Lance
Top achievements
Rank 1
Iron
 answered on 27 Apr 2021
6 answers
8 views
Hello, I am using the rich text editor to edit large word documents.
 
I noticed that if the screen rotation happens from portrait to landscape, all the content will shrink to the left part, with the right half empty,.and cannot be fixed unless you rotate it back.
 
Actually even when initially loaded, the horizontal scrollbar is wider than the content, which might be the reason causing the problem?
 

 
Is there a way to fit the scrollbars to the content, and make it display as expected during device rotation ?
 
I really needs to fix this 
 
Regards
Yana
Telerik team
 answered on 21 Apr 2021
12 answers
53 views

Hi!

After upgrade to Telerik UI for Xamarin R1 2021.

Content pages that use RadListView will throw System.TypeLoadException error:

03-01 09:37:41.966 D/Mono    ( 1041): Assembly Ref addref Telerik.XamarinForms.DataControls[0xe92528e0] -> System.Core[0xd1e0b8a0]: 11
03-01 09:37:41.966 W/        ( 1041): Could not load signature of Telerik.XamarinForms.DataControlsRenderer.Android.ListViewAccessibilityDelegateCompat:OnInitializeAccessibilityNodeInfo due to: Could not resolve type with token 01000150 from typeref (expected class 'AndroidX.Core.View.Accessibiity.AccessibilityNodeInfoCompat' in assembly 'Xamarin.AndroidX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:Xamarin.AndroidX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:AndroidX.Core.View.Accessibiity.AccessibilityNodeInfoCompat member:(null)
**System.TypeLoadException:** 'VTable setup of type Telerik.XamarinForms.DataControlsRenderer.Android.ListViewAccessibilityDelegateCompat failed'
 
 
**System.TypeLoadException:** 'VTable setup of type Telerik.XamarinForms.DataControlsRenderer.Android.ListViewAccessibilityDelegateCompat failed'
 
**System.NotImplementedException:** 'The method or operation is not implemented.'
 
03-01 09:58:44.813 W/        ( 2622): exception inside UnhandledException handler: (null) assembly:mscorlib.dll type:NotImplementedException member:(null)
03-01 09:58:44.813 E/mono-rt ( 2622): [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: VTable setup of type Telerik.XamarinForms.DataControlsRenderer.Android.ListViewAccessibilityDelegateCompat failed
03-01 09:58:44.813 E/mono-rt ( 2622):   at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.42(intptr,intptr,intptr,intptr,intptr)
03-01 09:58:44.813 E/mono-rt ( 2622):   at (wrapper native-to-managed) Android.Runtime.DynamicMethodNameCounter.42(intptr,intptr,intptr,intptr,intptr)

 

My app will crash after that exception thrown. How to fix this problem?

Thanks!

 

 

Didi
Telerik team
 answered on 21 Apr 2021
1 answer
10 views

Hello good afternoon, I have a problem since I updated to the most current versions of Xamarin.Forms and Telerik.

I had a ScrollView that was the parent of a RadTabView, and when switching between Tab items it updated as heights normally.

But after the update it records only the first height of the content of the first item and when I switch to the other items the scroll does not work because the height of the Tab does not change and he is unable to make a difference to calculate how much will roll.

 

EX:

 

 <ScrollView x:Name="s"
              BackgroundColor="Azure">
        <telerikPrimitives:RadTabView x:Name="tabView"
                                          BackgroundColor="Blue"
                                          IsContentSwipingEnabled="False">
            <telerikPrimitives:RadTabView.Items>
                <telerikPrimitives:TabViewItem HeaderText="Home">
                    <telerikPrimitives:TabViewItem.Content>
                        <StackLayout x:Name="sta"
                                         BackgroundColor="Aquamarine">

                            <StackLayout.GestureRecognizers>
                                <TapGestureRecognizer Tapped="st1" />
                            </StackLayout.GestureRecognizers>

                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                        </StackLayout>
                    </telerikPrimitives:TabViewItem.Content>
                </telerikPrimitives:TabViewItem>
                <telerikPrimitives:TabViewItem HeaderText="Folder">
                    <telerikPrimitives:TabViewItem.Content>
                        <StackLayout x:Name="stb"
                                         BackgroundColor="Firebrick">

                            <StackLayout.GestureRecognizers>
                                <TapGestureRecognizer Tapped="st2" />
                            </StackLayout.GestureRecognizers>

                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                        </StackLayout>
                    </telerikPrimitives:TabViewItem.Content>
                </telerikPrimitives:TabViewItem>
                <telerikPrimitives:TabViewItem HeaderText="View">
                    <telerikPrimitives:TabViewItem.Content>
                        <StackLayout x:Name="stc"
                                         BackgroundColor="DodgerBlue">

                            <StackLayout.GestureRecognizers>
                                <TapGestureRecognizer Tapped="st3" />
                            </StackLayout.GestureRecognizers>

                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                            <Label Margin="10" Text="This is the content of the Home tabdfoihdsoifhsoidhfoisdhfoishfois"
                               HeightRequest="50"
                               BackgroundColor="Red"/>
                        </StackLayout>
                    </telerikPrimitives:TabViewItem.Content>
                </telerikPrimitives:TabViewItem>
            </telerikPrimitives:RadTabView.Items>
        </telerikPrimitives:RadTabView>
    </ScrollView>

 

Ao mudar para o terceiro item da Tab ele não entende que deve fazer scroll.

 

Porf se alguém puder ajudar, agradeço.

Didi
Telerik team
 answered on 19 Apr 2021
2 answers
7 views
     I'm not seeing this in the Telerik NuGet feed.
Larry
Top achievements
Rank 1
 answered on 16 Apr 2021
1 answer
5 views

     Hi, 

I am looking to be able to make my data grid to be able to rotate to be in a portrait position. Anyway this is possible, or any suggestions on other Telerik controls to use for this?

 

Thanks

Lance | Manager Technical Support
Telerik team
 answered on 16 Apr 2021
3 answers
5 views

Hello everyone.

Since the richtexteditor control now supports setting a selection range programmatically, by the method EditBox.SelectionRange  = new RichTextSelectionRange(startPosition,endPosition);

I just need to know how to insert specified plain text or html code at the current selected range or cursor position?

I guess probably I can achieve this by invoking javascript, but the webView.EvaluateJavaScriptAsync("<Your JS goes here>") not seems to be exposed.

Thank you.

Yana
Telerik team
 answered on 14 Apr 2021
3 answers
4 views
     How do I change the color of disabled check boxes in UWP? The color now is a dark blue.
Yana
Telerik team
 answered on 14 Apr 2021