select

Gets or sets the selected item.

Example

<ul id="panelbar">
    <li id="item1">Item 1
        <ul>
            <li>Sub Item 1</li>
            <li>Sub Item 2</li>
            <li>Sub Item 3</li>
        </ul>
    </li>
    <li>Item 2
        <ul>
            <li>Sub Item 1</li>
            <li>Sub Item 2</li>
            <li>Sub Item 3</li>
        </ul>
    </li>
</ul>
<script>
    $("#panelbar").kendoPanelBar();
    // access an existing PanelBar instance
    var panelBar = $("#panelbar").data("kendoPanelBar");
    // select the item with ID, "item1"
    panelBar.select("#item1");
</script>

Parameters

element String|Element|jQuery (optional)

The PanelBar item to be selected, expressed as a string containing a selector expression or represented by a jQuery selector.

Returns

jQuery the selected item if called without arguments. kendo.ui.PanelBar if called with arguments.

In this article