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. Image for the cookie policy date

Listview AutoHeightMode throw exception in Android

Throwing System.MissingFieldException
Field 'Syncfusion.ListView.XForms.SfListView.AutoFitModeProperty' not found

3 Replies

DB Dinesh Babu Yadav Syncfusion Team May 15, 2017 12:13 PM UTC

Hi Muhammad, 
Thank you for using Syncfusion Products. 
The reported issue “MissingFieldException: Field AutoFitModeProperty not found” may occur due to mismatch assembly version of SfListView in Android renderer project. We have provided the support for AutoFit feature in our latest Essential Studio release (v So, could you please ensure that the assembly version added in renderer projects and in PCL project for SfListView control is same as v15.2.0.40. For your reference, we have attached a working sample which automatically fit the item’s height based on the content and you can download it from the below link. 
Could you please check with the above sample?. If the issue still reproduces at your end, please modify the above sample to reproduce the issue and update us with replication procedure or video link. So, that we could able to analyze the issue better and update you with appropriate solution. 
Please let us know if you require further assistance. 
Dinesh Babu Yadav 

MY Muhammad Yunus May 16, 2017 12:56 AM UTC

You are right, I forgot to change one of the references. Thanks for your response, by the way and good job.

DB Dinesh Babu Yadav Syncfusion Team May 16, 2017 04:03 AM UTC

Hi Muhammad, 
Thanks for the update. 
Dinesh Babu Yadav 

Live Chat Icon For mobile
Up arrow icon