Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Closing all panes in an AJAX Accordion

, 8 Sep 2011
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.

License

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

Share

About the Author

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

Comments and Discussions

 
GeneralMy vote of 1 PinmemberMember 1099308324-Sep-14 6:50 
Questionnot working Pingroupirfanansari23-Apr-14 9:12 
Generalthank u PinmemberMohammad Aboush1-Oct-13 13:12 
QuestionYes......... Pinmemberrhubka14-Mar-13 9:50 
GeneralReason for my vote of 5 sdf Pinmembernilaypatel929-Jan-12 18:37 
Generaldfgdgfdg PinmemberKaialsh Chandra Behera10-Nov-11 2:06 
Generalgfdg PinmemberKaialsh Chandra Behera10-Nov-11 2: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 | Mobile
Web02 | 2.8.140926.1 | Last Updated 8 Sep 2011
Article Copyright 2011 by mhamad zarif
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid