We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfListView Unhandled Exception error

Thread ID:

Created:

Updated:

Platform:

Replies:

148510 Oct 23,2019 08:22 AM UTC Oct 24,2019 10:22 AM UTC Xamarin.Forms 3
loading
Tags: SfListView
Kien.Phat
Asked On October 23, 2019 08:22 AM UTC

In my project im using ListView to display my products and it work. But if i replace ListView with SfListView it just crash and this error coming 


here is my Xaml code:

 <syncfusion:SfListView x:Name="listView" 
                ItemsSource="{Binding ListCoffee}" >
            <syncfusion:SfListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <Grid Padding="10" RowSpacing="3" ColumnSpacing="2">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="40"/>
                                    <RowDefinition Height="50"/>
                                    <RowDefinition Height="35"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="128"/>
                                    <ColumnDefinition Width="100"/>
                                    <ColumnDefinition Width="100"/>
                                    <ColumnDefinition Width="35"/>
                                </Grid.ColumnDefinitions>
 
                                    <Image Grid.Row="0" Grid.Column="0"  Grid.RowSpan="3" Aspect="AspectFit" 
                                HorizontalOptions="Center" Source="{Binding ImageSource}" VerticalOptions="Start" HeightRequest="110" WidthRequest="110"/>
                      
                                <Label x:Name="NameofItem" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" FontSize="16" VerticalOptions="Center"
                                   HorizontalTextAlignment="Center" TextColor="#3c6f9c" Text="{Binding Name}" WidthRequest="30"/>

                       

Sangeetha Raju [Syncfusion]
Replied On October 23, 2019 11:26 AM UTC

Hi Kien, 
 
Based on the provided information, we suspect that the mentioned issue occurs because of Xamarin.Forms dependency update in our SfListView control, we have upgraded Xamarin.Forms dependency version of SfListView to 3.6.0.344457 in our 17.2.0.46 version (2019 Volume 2 – SP1 release). For using this Syncfusion update or later versions, you must have to set the Android project target version as 9.0 as like below snap shot to resolve this issue.  
 
  

 
 
We have attached the tested sample for your reference. Please find the sample from the below link. 
  
  
Can you please check with the mentioned changes in your application and let us know whether the issue resolved at your end? 
  
Regards, 
Sangeetha Raju. 


Kien.Phat
Replied On October 24, 2019 02:16 AM UTC

thank you for your support, it's work. Can't think that 's so simple

Sangeetha Raju [Syncfusion]
Replied On October 24, 2019 10:22 AM UTC

Hi Kien, 
 
Thanks for the update. Please let us know if you require any further assistance. 
 
Regards, 
Sangeetha Raju. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon