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

Accordion issues with v18.3.0.50

See attached example.  The Accordion control throws errors when expanding an item.

Regards,
Arthur

Attachment: SfAccordionsamples_Net_5_7ab2e56f.zip

1 Reply 1 reply marked as answer

SK Satheesh Kumar Balasubramanian Syncfusion Team November 19, 2020 09:37 AM UTC

Hi Arthur, 
  
Greetings from Syncfusion Support. 
  
We could reproduce the issue “expanding the accordion item throws exception when using DataSource” at our end and confirm this as defect. We have logged the bug report which can be tracked from the following link. The issue fix for this defect will be included in our weekly patch release scheduled on the November 24, 2020. We would appreciate your valuable patience until then. 
  
  
Also we strongly recommend to use AccordionItem in combination with ContentTemplate instead of Datsource. We have modified the shared sample as same which can be downloaded from the following link, we hope that it works at your end. 
<SfAccordion> 
    <AccordionItems> 
        @foreach (AccordionData Item in AccordionItems) 
        { 
            <AccordionItem> 
                <HeaderTemplate> 
                    <div>@(Item.EmployeeName)</div> 
                </HeaderTemplate> 
                <ContentTemplate> 
                    <div> 
                        <div><b>Employee ID: </b>@Item.EmployeeId</div> 
                        <div><b>Designation: </b>@Item.Designation</div> 
                    </div> 
                </ContentTemplate> 
            </AccordionItem> 
        } 
    </AccordionItems> 
</SfAccordion> 
 

 
Kindly try the above sample and get back to us if you need further assistance. 

Regards, 
Satheesh Kumar B 



Marked as answer
Loader.
Up arrow icon