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

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

Hello,

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
TrabonSolutions

1 Reply

DB Dinesh Babu Yadav Syncfusion Team 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. 
 
Regards, 
Dinesh Babu Yadav 
 


Loader.
Up arrow icon