Thank you for getting back to us. Unfortunately the RadPanelBar
control doesn't support such a behavior out-of-the-box. However, you can customize the RadPanelBarItems
resizing logic handling the Expanded
events in order to implement your customizations.
For example you can calculate the MaxHeight
of each item based on the ActualHeight
of the RadPanelBar
and the default ActualHeight
of the collapsed PanelBarItem
which by default is about 22px
. Using this approach I prepared a sample project which customizes the RadPanelBarItem
property based on the count of all items and the ActualHeight
of the PanelBar
control at a given moment.
Please note that in the attached solution, the RadPanelBar
default style isn't changed, which means that it still contains a ScrollViewer
but I have disabled the scroll bars. Let me know if this helps.
the Telerik team