Click here to Skip to main content
11,410,118 members (61,307 online)
Click here to Skip to main content

Tagged as

Closing all panes in an AJAX Accordion

, 8 Sep 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

mhamad zarif
Software Developer Netiks
Lebanon Lebanon
I have been a programmer for about one year.My power is in and flash (actionscript 3).I also work on windows application using and c#.

Comments and Discussions

GeneralMy vote of 1 PinmemberMember 1099308324-Sep-14 7:50 
Questionnot working Pingroupirfanansari23-Apr-14 10:12 
Generalthank u PinmemberMohammad Aboush1-Oct-13 14:12 
QuestionYes......... Pinmemberrhubka14-Mar-13 10:50 
GeneralReason for my vote of 5 sdf Pinmembernilaypatel929-Jan-12 19:37 
Generaldfgdgfdg PinmemberKaialsh Chandra Behera10-Nov-11 3:06 
Generalgfdg PinmemberKaialsh Chandra Behera10-Nov-11 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150414.5 | Last Updated 8 Sep 2011
Article Copyright 2011 by mhamad zarif
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid