Size of items with list on it

Hello,

I'm trying to use a SfListView to show a list of items. Each of the items has a SfListView with other items on it, e.g. a list of orders with a list of ordered products.

 

I want to show a list with all the orders and all of the products like this.

 

Order1

Product1

Product2

Product3

 

Order2

Product1

Product2

 

Order3

Product1

 

When I try this all my "Order"-items are shown in the same size no matter how many Product items are in the order. I have tried it with AutoFitMode for both the list but without any success. Would it be possible to provide a sample for this case?


Kind regards

Frank


3 Replies 1 reply marked as answer

LN Lakshmi Natarajan Syncfusion Team August 17, 2020 03:47 AM UTC

Hi Frank, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “ListView inside ListViewItem” from our end. We would like to inform you that When the AutoFitMode of the outer ListView is height, the size of the inner ListView will be allocated from the maximum screen size. Since the exact size for the inner list cannot not be obtained before loading the view. To get a fixed height for the inner ListView, define a value in its HeightRequest. If the items inside the inner ListView are less, allocate the total extend of the inner list to its HeightRequest. 
 
We have already documented the same requirement in our user guidance document and you can find it from the following link, 
 
Please let us know if you need further assistance. 
 
Regards, 
Lakshmi Natarajan 


Marked as answer

FR Frank August 17, 2020 04:57 PM UTC

Hello,
I wasn't aware of the GitHub samples.They reflect my case perfectly.
Thank you very much.
You can close the incident.
Frank


LN Lakshmi Natarajan Syncfusion Team August 18, 2020 03:38 AM UTC

Hi Frank, 
 
Thank you for the update. 
 
We are glad that our solution meets your requirement. Please let us know if you need any further update. As always we are happy to help you out. 
 
Lakshmi Natarajan 
 


Loader.
Up arrow icon