This is a migrated thread and some comments may be shown as answers.

Cannot get PanelBar initiated!

2 Answers 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 07 Dec 2012, 05:38 PM
Can anyone out there help me with getting a panel bar working correctly?  No matter what tutorial I try, or sample code I use - I cannot get it to work???

Thanx in Advance,
Chris

2 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Nikolova
Telerik team
answered on 10 Dec 2012, 01:28 PM
Hello Chris,

Generally speaking, a Kendo UI PanelBar should be initialized from a HTML list and its initialization should occur after the DOM is fully loaded. For example:

//....
<ul id="panelBar">
  <li>
    Item 1
      <ul>
         <li>Sub Item 1</li>
         <li>Sub Item 2</li>
      </ul>
  <li>
  <li>Item 2</li>
</ul>
//....
 
<script>
$(document).ready(function() {
    $("#panelBar").kendoPanelBar();
});
</script>

For more detailed information I recommend checking the corresponding documentation (I believe the getting started topic will be very useful) and going through the online demos.   

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chris
Top achievements
Rank 1
answered on 10 Dec 2012, 03:40 PM
Thank You!
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Chris
Top achievements
Rank 1
Share this question
or