Item size auto

Hi Syncfusion.

I'm working with the SfListView to load a list of products, each product include an image, a title and a description, the problem is that the item size of listview by default is 40 i've been editing the size to fit the content of the product but i think that is not the best practice, exist a way to set the item size to Auto or * to set the item size respect to listview content defined.

Please let me know a solution, i'll really appreciate.

Best,
Carlos.

3 Replies

JN Jayaleshwari N Syncfusion Team October 25, 2018 06:16 AM UTC

Hi Carlos, 
 
Thanks for Contacting Syncfusion Support. 
 
We have checked the reported query “Auto size for item” from our side. You can achieve your requirement by setting the property AutoFitMode as Height to ListView. We have attached the sample for your reference. You can download the same from the following location. 
 
 
You can also get the more information about the ItemSize customization from the following UG link. 
 
 
Please let us know , if this solution meets your requirement. 
 
Regards, 
Jayaleshwari N. 



HP Herson Perez October 25, 2018 03:23 PM UTC

Thanks a lot for your answer.

In deed, it works the AutoFitMode as Height!

Have a nice day.
Carlos.


JN Jayaleshwari N Syncfusion Team October 26, 2018 12:11 PM UTC

Hi Carlos, , 
 
Thanks for the update. Please get in touch if you would require further assistance. 
 
Regards, 
Jayaleshwari N 


Loader.
Up arrow icon