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.
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:

Created:

Updated:

Platform:

Replies:

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

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

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


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.

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

;