65.9K
CodeProject is changing. Read more.
Home

Closing all panes in an AJAX Accordion

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.17/5 (6 votes)

Sep 8, 2011

CPOL
viewsIcon

33299

How to close all panes in an AJAX Accordion.

Recently I faced a problem in making all panes of the Accordion control close by default, and I spent many hours searching until I discovered a solution by myself. And here is what we should do:

In the Accordion control, set requireopenedpane to false and selectedindex="-1".

It will work like magic. Good luck.