ComponentOne Accordion for ASP.NET Web Forms
Task-Based Help / Opening Multiple Panes Simultaneously
In This Topic
    Opening Multiple Panes Simultaneously
    In This Topic

    The C1Accordion control allows you to open the multiple panes at once.

    When the RequireOpenedPane property is set to True, clicking a header will close the currently opened pane, leaving the remaining panes closed. When the RequireOpenedPane property is set to False, clicking a header will not close the currently opened panes.

    Design Time

    1. Select View | Properties Window.
    2. Next to the RequireOpenedPane property, click the drop-down arrow and choose False.

    In Code

    Add the following code to the Page_Load event, for example, to set theEvent property.

    To Write code in Visual Basic

    Visual Basic
    Copy Code
    C1Accordion1.RequireOpenedPane = False

    To write code in C#

    C#
    Copy Code
    C1Accordion1.RequireOpenedPane = false;

    In Markup

    You can add the markup for theEvent property directly to the C1Accordion markup. It is automatically added to the markup if you set the property in the page at design time. The markup looks like the following:

    Copy Code
    <cc1:C1Accordion ID="C1Accordion1" runat="server" 
    DataSourceID="AccessDataSource1" Event="" RequireOpenedPane="False">
    

    When you run the application and hover over an accordion header, the content pane expands.

    See Also