Telerik Forums
UI for Xamarin Forum
1 answer
115 views

My project has a list of objects (Products) and each Product is made up of multiple Components. I display the list of Products in a RadListView, and show the Components in a RadExpander (for each element within the list).

If I add a Product with say, 4 Components to the list, then remove it, then add a Product with 2 Components the area drawn on the screen for the Components is the size that it would be if there were 4 Components. The same is true in reverse, if I add a Product with 2 Components, then remove it and add one with 4, the bottom 2 Components are cut off.

EG - Add 4 Component item - Add Truck (Door/Seat/Wheels/Windows)

Remove it from the list by clicking the X - then add a 2 Component item - Add Car (Door/Seat)

As you can see, the blue RadExpander area still has room for the extra 2 components.

Currently, I am having to clear my entire backing list out every time I Add/Remove a Product from the list to overcome this issue. Surely it should be capable of simply redrawing itself correctly?

 

I attach a Zip with a test project, currently using the latest available NuGet for Telerik.UI.for.Xamarin (2022.2.505.1), and latest Xamarin.Forms NuGet (5.0.0.2478).

Any assistance would be greatly received - thanks.

Didi
Telerik team
 answered on 24 Jun 2022
0 answers
241 views

Hi,

I have this error in release mode only in android ,

Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'Telerik.XamarinForms.Common.Painters.PurePainter' (defined in assembly 'Telerik.XamarinForms.SkiaSharp, Version=2020.3.1207.460, Culture=neutral, PublicKeyToken=null') with scope 'Telerik.XamarinForms.Common, Version=2020.3.1207.460, Culture=neutral, PublicKeyToken=null'. When the scope is different from the defining assembly, it usually means that the type is forwarded. ---> Mono.Cecil.ResolutionException: Failed to resolve Telerik.XamarinForms.Common.Painters.PurePainter
   at Mono.Linker.Steps.MarkStep.HandleUnresolvedType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkField(FieldDefinition field)
   at Mono.Linker.Steps.MarkStep.MarkEntireType(TypeDefinition type)
   at Mono.Linker.Steps.MarkStep.MarkEntireAssembly(AssemblyDefinition assembly)
   at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
   at Mono.Linker.Steps.MarkStep.Initialize()
   at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
   at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
   at Mono.Linker.Pipeline.Process(LinkContext context)
   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   --- End of inner exception stack trace ---
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   at Xamarin.Android.Tasks.LinkAssemblies.RunTask()
   at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/builder/azdo/_work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17

1 answer
100 views

I want to make Command when tapped on item in tree view but this stopped Collapse / Expand behavior on tree View

 

Any help ?

Thanks.

Didi
Telerik team
 answered on 09 Dec 2021
3 answers
430 views

Hi,

I am using a ListView and have set its ItemTemplate to be an Expander. This works fine on Android, expanding each of the items in the ListView moves the other items down, so that multiple items can be expanded at once.

However when the same is run on iOS, the Expander at the top of the list covers the rest of the Items in the ListView, therefore preventing multiple items to be expanded at the same time.

Is there some specific property I can set against a renderer for the iOS project to allow the behaviour, as experienced on Android, to be replicated on iOS?

Kind regards,

Paul

Lance | Manager Technical Support
Telerik team
 answered on 29 Jul 2020
1 answer
81 views

Hi,

I have a ListView where the ItemTemplate is defined as an Expander. I have placed a series of controls on the Content of that Expander, such as Labels, an Expander and a series of Buttons. When trying to tap these buttons, my underlying Command is invoked on Android however nothing happens on iOS.

Due to another issue with the ListView and Expander, what happens on iOS is that the ListView Item under the expanded item is expanded rather the button on the expanded item being tapped.

Are there any properties I can set for iOS specifically to achieve the same behaviour on iOS as I do on Android?

Kind regards,

Paul

Lance | Manager Technical Support
Telerik team
 answered on 28 Jul 2020
1 answer
146 views

Hi,

I have a ListView where the ItemTemplate is set as an Expander. Part of the Content of each Expander has another Expander defined. Tapping on the second Expander within the first Expander, expands successfully on Android however it does not expand on iOS.

Are there any additional properties I need to set for iOS to achieve the same functionality as Android?

Kind regards,

Paul

Lance | Manager Technical Support
Telerik team
 answered on 28 Jul 2020
1 answer
893 views

Hello,

I want a listeView, and when I click on an item, layout expands smoothy to show details. 

So I decided to use RadExpander as ItemTemplate. But its not working very well. 

1. When I click on an item, it doesnt expand. I have to refresh the layout to see the expand (I refresh with scroll/unscroll). And then I can see it expand/reduce.

2.When I scroll/unscroll, its like if wrong data is displayed on cells. New text is superimposed with old text. 

 

Code below to reproduce (testing on android device).

I am open to any advice to achieve a smoothy expand on listview. 

Thanks.

[XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class CurTestPage : ContentPage
    {
        public CurTestPage ()
        {
            InitializeComponent ();
 
            var list = new List<string>();
 
            for (int i = 0; i < 100; i++)
            {
                list.Add(i.ToString());
            }
 
            listView.ItemsSource = list;
 
 
        }
         
    }
<?xml version="1.0" encoding="utf-8" ?>
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
             xmlns:abstractions="clr-namespace:CarouselView.FormsPlugin.Abstractions;assembly=CarouselView.FormsPlugin.Abstractions"
             x:Class="Portwin.Tests.CurTestPage">
 
    <ListView x:Name="listView" HasUnevenRows="True">
        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                    <telerikPrimitives:RadExpander x:Name="expander">
                        <telerikPrimitives:RadExpander.Header>
                            <telerikPrimitives:ExpanderHeader>
                                <Label Text="{Binding .}" />
                            </telerikPrimitives:ExpanderHeader>
                        </telerikPrimitives:RadExpander.Header>
                        <telerikPrimitives:RadExpander.Content>
                            <Label Text="{Binding .}" />
                        </telerikPrimitives:RadExpander.Content>
                    </telerikPrimitives:RadExpander>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>
 
</ContentPage>
Yana
Telerik team
 answered on 01 May 2019
1 answer
361 views

Hello

I have a parameter list which contains 75 items (I've created a custom UI element. I try to show these params in the content of RadAccordion. Unfortunately it shows only 24 items by using scroll and after 24 items, I cannot scroll.. I've tried with RadExpander, it shows 16 items. I do not give any height value. How I can increase the size? Here is my code

<ContentView.Content>
       <Grid BindingContext="{Binding MeterReadout, Source={StaticResource ViewModelLocator}}"  VerticalOptions="FillAndExpand">
           <StackLayout  Margin="10,20,10,0">
               <datacontrols:RadListView x:Name="listView"   ItemsSource="{Binding Source}" SelectionMode="None" VerticalOptions="FillAndExpand" >
                   <datacontrols:RadListView.ItemTemplate>
                       <DataTemplate>
                           <telerikListView:ListViewTemplateCell >
                               <telerikListView:ListViewTemplateCell.View>
                                   <ScrollView VerticalOptions="FillAndExpand">
                                     <telerikPrimitives:RadExpander x:Name="expander" Style="{StaticResource ExpanderStyle}">
                                               <telerikPrimitives:RadExpander.Header>
                                                   <telerikPrimitives:ExpanderHeader>
                                                   <Label Text="{Binding MeterId}"  Style="{Binding CapitalLettersLabel}"   />
                                            </telerikPrimitives:ExpanderHeader>
                                               </telerikPrimitives:RadExpander.Header>
                                               <telerikPrimitives:RadExpander.Content>
                                               <ScrollView  Style="{StaticResource ExpanderContent}">
 
                                                   <customCellItem:CustomReadoutListItem
                                                       ItemsSource="{Binding MeterValues}"
                                                     
                                                   />
                                               </ScrollView>
                                               </telerikPrimitives:RadExpander.Content>
                                           </telerikPrimitives:RadExpander>
                                    </ScrollView>
                               </telerikListView:ListViewTemplateCell.View>
                           </telerikListView:ListViewTemplateCell>
                       </DataTemplate>
                   </datacontrols:RadListView.ItemTemplate>
               </datacontrols:RadListView>
           </StackLayout>
       </Grid>
   </ContentView.Content>

 

 

Didi
Telerik team
 answered on 06 Nov 2018
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?