If you modify the Expanded event handler and multiply not by expandedItem.ActualHeight but by 22 (which is the default Height of all the Level 1 panel bar items) should be enough:
sender, Telerik.Windows.RadRoutedEventArgs e)
RadPanelBarItem expandedItem = sender
RadPanelBarItem rootItem =
(expandedItem.Level == 1)
rootItem = expandedItem;
totalHeight = index * 22;
// 22 is the default height of the PanelBarItem
RadPanelBarItem GetRootPanelBarItem(RadPanelBarItem pbi)
Of course multiplying by such magic numbers is not a good practice but this is the most straightforward way. Let me know if you have further questions or comments regarding this topic.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items