Is there a way to set the panel bar to a specific height (ie. 300px), and make that specific section scrollable if it's too long?
Asked
Active
Viewed 3,075 times
2 Answers
1
Assuming that you have your panelbar defined as a ul
, something like:
<ul id="panelbar">
<li class="k-state-active">
<span class="k-link k-state-selected">My Teammates</span>
<div style="padding: 10px;">
<div class="teamMate">
<img src="../../content/web/panelbar/andrew.jpg" alt="Andrew Fuller">
<h2>Andrew Fuller</h2>
<p>Team Lead</p>
</div>
<div class="teamMate">
<img src="../../content/web/panelbar/nancy.jpg" alt="Nancy Leverling">
<h2>Nancy Leverling</h2>
<p>Sales Associate</p>
</div>
<div class="teamMate">
<img src="../../content/web/panelbar/robert.jpg" alt="Robert King">
<h2>Robert King</h2>
<p>Business System Analyst</p>
</div>
</div>
</li>
<li>
Projects
...
</li>
</ul>
You should define a CSS style as:
#panelbar {
height: 300px;
overflow-y: scroll;
}
See an example here: http://trykendoui.telerik.com/@OnaBai/ifus

OnaBai
- 40,767
- 6
- 96
- 125
-
1This will kill the sliding animation – Matyas Aug 17 '16 at 12:32
1
The solution above scrolls the entire control. Here's how to scroll the panel's items.

LawMan
- 3,469
- 1
- 29
- 32