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

How to expand only one item at a time in Xamarin.Forms Accordion (SfAccordion) ?

Hi, I'm using the expander and I can't seem to find a way to only allow one item at a time.  Accodian has ExpandMode="Multiple" but I don't see the equivalent.

Can you explain how to have only one item at a time please?

Thank you,
Brian

1 Reply

SR Sivakumar R Syncfusion Team May 9, 2019 06:01 PM UTC

Hi Brian, 
 
SfAccordion allows you to load multiple accordion items where it provides support for ExpandMode property which decides whether to allow user to expand sing or multiple items. 
 
But Expander control allows you to load header and collapsible content. If you want to programmatically expand or collapse using IsExpanded property and also you can handle expanding or collapsing of content by using Expanding and Collapsing events. https://help.syncfusion.com/xamarin/sfexpander/getting-started#expand-and-collapse 
 
Please let us know if you have any queries.  
 
Thanks, 
Sivakumar 


Loader.
Live Chat Icon For mobile
Up arrow icon