Binding Error

There is a binding error with ListView when used with MvvmCross 6.0
               
            <listview:SfListView ItemsSource="{Binding Categories}"
                                   SelectionMode="Single"
                                   AllowGroupExpandCollapse="true"
                                   x:Name="CategoryListView">
                
                <listview:SfListView.ItemTemplate>
                    <DataTemplate>
                        <Grid Padding="10">
                            <Label Text="{Binding Description}" FontSize="14" FontAttributes="Bold"/>
                        </Grid>
                    </DataTemplate>
                </listview:SfListView.ItemTemplate>
            </listview:SfListView>

The default Xamarin.Forms ListView works fine.

5 Replies

RS Rawoof Sharief Muthuja Sherif Syncfusion Team May 7, 2018 11:10 AM UTC

Hi Grish, 
 
Apologies for the delay. 
 
We have checked the reported query “Binding error in SfListView when used with MVVMCross” from our side. Unfortunately, we could not reproduce the reported issue from our side. Listview items are loaded in the view as expected and we didn’t face any crash.  
  
For your reference we have attached the sample, you can download it from below link.  
  
  
Could you please check with the above sample? If the issue still replicates, Can you please modify the above sample to replicate the reported issue.   
   
Please let us know if you require further assistance.   
 
Regards, 
Rawoof M. 
 



GV Grish V May 7, 2018 12:11 PM UTC

Thank you very much for your reply.

As suggested by your colleague, I am planning to downgrade the Forms version and try again.

Thanks again,

Girish V


RS Rawoof Sharief Muthuja Sherif Syncfusion Team May 8, 2018 04:16 AM UTC

Hi Girish, 
 
Thanks for the update. We will wait until further response from you. 
 
Regards, 
Rawoof M. 



GV Grish V May 9, 2018 09:28 AM UTC

We are using MvvmCross 6.0.1 and it needs Xamarin Forms Version 2.5.

So, we are unable to downgrade the Xamarin Forms version.

Any suggestions? 

Further, Please let us know the timeline for next update to SfDataGrid.

Thank you very much for all the support.

/Girish


RS Rawoof Sharief Muthuja Sherif Syncfusion Team May 22, 2018 12:38 PM UTC

Hi Grish, 

We have tried to update the MVVMCross from v5.3 to v6.0 nuget but it does not updated in PCL project and throws the following error. So, we have followed the given approaches by MVVMCross team in the below link to resolve it but still we are facing the same issue. 

Exception details: 
Could not install package 'MvvmCross.Plugin.6.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 


As stated earlier, in MVVMCross v5.3, the binding behaviors of SfListView is working as expected and unable to ensure the same in v6.0 due to the above mentioned error. Since, we have bind the data to the ListViewItem based on the values in the ItemsSource property and binding context of SfListView.  

We suspect that the issue may occur either in custom control at MVVMCross 6.0 version or binding context of SfListView may not be updated.  

So, we recommend you to ensure whether the binding context of SfListView is updated properly in the application level and ensure whether the issue replicates in a simple sample and report it to the MVVMCross team if replicated. 

If you are still facing the issue, we suggest you to share the sample with the replication procedure which would help us to analyze the issue better and update you an appropriate solution. 
  
Please let us know if you require further assistance. 

Regards, 
Rawoof M. 



Loader.
Up arrow icon