New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Preventing a RadPanelBar PanelItem from collapsing


Prevent a RadPanelBar item from collapsing


A common way to prevent a RadPanelBar item from collapsing is hooking on the OnClientItemClicking client side event of RadPanelBar and cancel the event when the item is about to be collapsed.

<script type="text/javascript"> 
function onClientItemClicking(sender, eventArgs) 
    var item = eventArgs.get_item(); 
    if (item.get_expanded()) 
<telerik:RadPanelBar ID="RadPanelBar1" OnClientItemClicking="onClientItemClicking" runat="server"> 
In this article