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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can ItemSize default to auto when ItemTemplate and/or support HasUnevenRows

Thread ID:





131316 Jul 4,2017 03:34 PM UTC Jul 5,2017 08:48 AM UTC Xamarin.Forms 1
Tags: SfListView
Bob Baldwin
Asked On July 4, 2017 03:34 PM UTC


We really like the SfListView control for XForms.

Is it possible to have the ItemSize property default to Auto instead of 40 when an ItemTemplate is used whether in markup or via DataTemplateSelector?  It seems to make sense for the ItemTemplate content to define the item height versus hard coded in these cases.

And/or can you add support for HasUnevenRows and we can default ItemSize to -1 like is done with stock XForms ListView?

Thank you for your assistance,
Bob Baldwin, Lead Xamarin Developer

Dinesh Babu Yadav [Syncfusion]
Replied On July 5, 2017 08:48 AM UTC

Hi Bob, 
Thank you for using Syncfusion Products. 
The reported requirement “Automatically the fit the item size based on content” can be achieved by using AutoFitMode as “Height” which is similar to HasUnevenRows in Xamarin Forms ListView. The following UG documentation which helps you to achieve the same. 
Also, you can define the fixed size to each item on demand in the view by using QueryItemSize event and the following link illustrates you to handle the each item size in SfListView. 
Please let us know if you require further assistance. 
Dinesh Babu Yadav 


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

or the page will be automatically redirected to 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