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.
Unfortunately, activation email could not send to your email. Please try again.

SFAccordionItem - Disable accordion section

Thread ID:

Created:

Updated:

Platform:

Replies:

125035 Jul 15,2016 01:17 PM Jul 18,2016 08:50 AM UWP 1
loading
Tags: SfAccordion
Thomas Edwards III
Asked On July 15, 2016 01:17 PM

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

Venkateshwaran Ramdoss [Syncfusion]
Replied On July 18, 2016 08:50 AM

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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;