I am confused as to why the Accordion Control behaves the way it does in relation to the CollapsiblePanel when it comes to JavaScript being enabled or disabled.
The CollapsiblePanel utilizes the concept of progressive enhancement to deliver a very accessible experience to users with JavaScript disabled. The panel is always delivered in an expanded state and is then collapsed/left expanded based on programmer settings for the control. Users with JavaScript disabled are not limited from seeing the content in the panel and users with JavaScript get an enhanced experience.
However, the Accordion Control rather than delivering the page with all of the panels expanded defaults to collapsing all or all but one of its panels. Why the control does not deliver all panels expanded and then collapse the panels with JavaScript is beyond me.
Is there a reason for this behavior or is this something that should be put forth as an enhancement for a future Toolkit Release? If there is a workaround for making the accordion behave like the CollapsiblePanel I am up for that as well. Any suggestions are greatly appreciated.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
This can be beneficial to other community members reading the thread.