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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SFAccordionItem - Disable accordion section

Thread ID:

Created:

Updated:

Platform:

Replies:

125035 Jul 15,2016 05:17 PM UTC Jul 18,2016 12:50 PM UTC UWP 1
loading
Tags: SfAccordion
Thomas Edwards III
Asked On July 15, 2016 05:17 PM UTC

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 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. 


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.

Warning Icon 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.Close Icon

;