dynamic expandable view

Hi,

I want to know if the following can de done and if so how I should implement it, or maybe there is even an example.

I'd like to have a listview with an expandable view (like shown in the syncfusion example app (listview - expandable view) with the only difference is that the number of items in the expandable list should be dynamic.  So dependent on the choosen listitem it shows for example sometimes 3 rows, sometimes 2, sometimes none.

The listitem is a number of members of a club and if you expand this there are a number of contacts and these contacts could be different in number (one member could have 3 contacts, another could have 1)

Please advise

Thanks
Kris


3 Replies

LN Lakshmi Natarajan Syncfusion Team January 3, 2022 12:56 PM UTC

Hi Kris, 
 
You can achieve your requirement by using ListView to show the expandable view. You can bind the contacts list to the SfListView.ItemsSource property to show the expandable view based on the contacts.  
 
We have prepared a sample based on your requirement and attached in the following link, 
 
Please refer to our user guidance document to work with nested ListView in the following link, 
 
You can also refer to our online documentation to work with expandable listview, 
 
Please let us know if you need further assistance. 
 
Lakshmi Natarajan 
 



KH kris hoobergs January 7, 2022 12:41 PM UTC

Hi Lakshmi,

Thanks for this great example and explanation.  I'm going to give it a try in the next days.  I'll contact you again if I encounter some problems.

Regards
Kris



LN Lakshmi Natarajan Syncfusion Team January 10, 2022 09:42 AM UTC

Hi Kris, 
 
Please let us know if you need further assistance. As always, we are happy to help you out. 
 
Lakshmi Natarajan 
 


Loader.
Up arrow icon