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

Hi,

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. 

Thanks,

TJ

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; 
                } 
                else 
                    item.IsEnabled = true; 
            } 

Regards, 
Venkateshwaran V.R. 


Loader.
Live Chat Icon For mobile
Up arrow icon