Premium forums

How to set default item on PanelBar with class?

  • Delvi
    Delvi avatar

    23 Nov 2011 (Link to this post)

    I'm using the PanelTab but expanded by establishing a default item with class "k-state-active" is not working.
    Any suggestions?

    <ul id="panelbar">
        <li class="k-state-active">
            ACCOUNT
    <ul>
    <li>Test</li>
    </ul>
        </li>
    <li> Other Item</li>
    </ul>

    Script:
    $(function(){
     
        $("#panelbar").kendoPanelBar();
    })
  • Kamen Bundev
    Kamen Bundev avatar

    24 Nov 2011 (Link to this post)

    Hello Delvi,

    I've just tested and it seems to be working. Please note that it only expands the item and doesn't select it. Can you describe what are you trying to achieve?

    All the best,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

Read FAQ or see Kendo UI in action!

Launch Demos