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

SFAccordionItem - Disable accordion section


Is it possible to disable an AccordionItem? My goal is to prevent all interaction with the AccordionItem in its collapsed state.  I have looked through the properties and nothing is catching my eye. 



1 Reply

VR Venkateshwaran Ramdoss Syncfusion Team July 18, 2016 12:50 PM UTC

Hi Thomas, 

Thank you for contacting Syncfusion Support. 

This reported requirement can be achieved by using "IsEnabled" property in SfAccordionItem. Please make use of code snippet and sample in below for you reference. 

Code snippet: 
foreach(SfAccordionItem item in this.accordion.Items) 
                if (!item.IsSelected) 
                    item.IsEnabled = false; 
                    item.IsEnabled = true; 

Venkateshwaran V.R. 

Live Chat Icon For mobile
Up arrow icon