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

Open an Accordion item when control is loaded using Content Template

I have an Accordion control that uses a content template with 5 items.  When the control is loaded, I would like the 2nd item to be expanded and the rest closed.  Currently on load all are closed and I have to click on one to expand. 

3 Replies

HB Hareesh Balasubramanian Syncfusion Team December 16, 2019 12:27 PM UTC

Hi Carl, 

Greetings from Syncfusion Support. 

Based on your requirement we have prepared a sample, to expand the second item on the initial load using created event and expandMode property is used to expand/ collapse a single / multiple Accordion item. 


Kindly try the above sample, if you have any concerns please revert us back for further assistance. 

Regards, 
Hareesh 



CF Carl Ford December 16, 2019 06:00 PM UTC

Thank you Hareesh.  That is exactly what I was looking for.

Carl


VD Vinitha Devi Murugan Syncfusion Team December 17, 2019 06:09 AM UTC

Hi Carl, 
 
Thanks for your update. 
 
We are happy to hear that our solution has fulfilled your requirement.  
 
Regards, 
M.Vinitha devi 


Loader.
Up arrow icon