IsVisible property of AccordionItem in SfAccordion is not working

Hello,

I encountered a problem of visibility of AccordionItem in sfExpander, the property does not work even if we do:

            <sfExpander:SfAccordion>
                <sfExpander:SfAccordion.Items>
                    <sfExpander:AccordionItem IsVisible="False">
                        <sfExpander:AccordionItem.Header>
                            <Label TextColor="#495F6E" Text="{Binding TitleText}" HeightRequest="50" VerticalTextAlignment="Center"/>
                        </sfExpander:AccordionItem.Header>
                        <sfExpander:AccordionItem.Content>
                            <Label />
                        </sfExpander:AccordionItem.Content>
                    </sfExpander:AccordionItem>
                </sfExpander:SfAccordion.Items>
            </sfExpander:SfAccordion>

It always remains visible.

Can you please offer me help how to control the visibility of an AccordionItem within a sfExpander?

Thanks in advance

1 Reply 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team June 10, 2020 03:05 PM UTC

Hi Khalid, 
 
Thank you for contacting Syncfusion support 
 
#Regarding IsVisible property of AccordionItem in SfAccordion is not working  
We would like to inform you that as per implementation of SfAccordion, we cannot hide AccordionItem using IsVisible property. But you can achieved your requirement by adding and removing the AccordionItems collection at runtime by using button clicked event. We have already prepared the KB documentation “how to show or hide the item in SfAccordion”. Please refer the sample in the following KB link. 
 
 
We hope this helps. Please let us know if you need any further assistance. 
 
Regards, 
SaiGanesh Sakthivel 


Marked as answer
Loader.
Up arrow icon