\n","See Also","Basic Usage of the PanelBar (Demo)","Using the API of the PanelBar (Demo)","JavaScript API Reference of the PanelBar","In this article","Related articles","Not finding the help you need?","Contact Support","Improve this article","Getting Started","Whats New","Gemeinschaft","Doc Contribution","Frameworks","Kendo UI for jQuery","Kendo UI for Angular","Kendo UI for React","Kendo UI for Vue","Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.","Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.","Nutzungsbedingungen","Privacy Center","Security Center","Trademarks","License Agreements","Code of Conduct","Doc Copyright","DO NOT SELL MY PERSONAL INFORMATION"]}

New to Kendo UI for jQuery? Download free 30-day trial

Expand Modes

The PanelBar supports a single and a multiple expand mode.

If ExpandMode is set to Single, the user can expand only a single root item or a single child item of a specific parent item. Expanding another root item or another child of the parent of the currently expanded item will collapse the currently expanded item. This approach is also the only way to collapse an expanded item in the single expand mode.

If ExpandMode is set to Multiple, the user can expand multiple root items or children of the same parent item at a time. Expanding an item does not collapse the currently expanded items. Expanded items can be collapsed by clicking on them.

<div id="panelbar"></div>
<script>
    var items = [
        { ProductName: "Root1", items: [
            { ProductName: "Level2 1", items: [
                { ProductName: "Level3 1" },
                { ProductName: "Level3 2" }
            ]},
            { ProductName: "Level2 2", items: [
                { ProductName: "Level3 1" },
                { ProductName: "Level3 2" }
            ]}
        ]},
        { ProductName: "Root2", items: [
            { ProductName: "Level2 1" }
        ]}
    ];

    $("#panelbar").kendoPanelBar({
        dataTextField: "ProductName",
        dataSource: items,
        expandMode: "single"
    });
</script>

See Also

In this article