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

Server-side Events

  • ASP.NET controls
    • RadMenu
    • RadTabStrip
    • RadPanelBar
    • RadTreeView
  • WinForms controls
    • RadMenustrip
    • RadTabStrip
    • RadToolStrip
  • Other projects
    • SiteFinity
    • Reporting
    • RadAjax
Event log

RadPanelBar introduces three server-side events for working with panel items:

  • ItemClick occurs when the user clicks on a panel item
  • ItemCreated occurs when a new panel item is added to the panelbar (at any level)
  • ItemDataBound occurs when a panel item is bound to a data source

This example shows how the ItemClick event can be wired up. In your VB or C# code you only need to set the ItemClick event of the RadPanelBar class to the event handler that will process the event. Alternatively, you can use declarative event wiring in your ASPX/ASCX templates.
Please review the source code of this example for additional details.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="PanelBar.Examples.ServerSide.ServerSideEvents.DefaultCS" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html>
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />

    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />

    <div class="demo-container size-thin">

        <telerik:RadPanelBar RenderMode="Lightweight" runat="server" ID="RadPanelBar1" Width="100%" OnItemClick="RadPanelBar1_ItemClick">
                <telerik:RadPanelItem Expanded="True" Text="ASP.NET controls">
                        <telerik:RadPanelItem Text="RadMenu" />
                        <telerik:RadPanelItem Text="RadTabStrip" />
                        <telerik:RadPanelItem Text="RadPanelBar" />
                        <telerik:RadPanelItem Text="RadTreeView" />
                <telerik:RadPanelItem Text="WinForms controls">
                        <telerik:RadPanelItem Text="RadMenustrip" />
                        <telerik:RadPanelItem Text="RadTabStrip" />
                        <telerik:RadPanelItem Text="RadToolStrip" />
                <telerik:RadPanelItem Text="Other projects">
                        <telerik:RadPanelItem Text="SiteFinity" />
                        <telerik:RadPanelItem Text="Reporting" />
                        <telerik:RadPanelItem Text="RadAjax" />
    <qsf:EventLogConsole ID="EventLogConsole1" runat="server" AllowClear="true" ></qsf:EventLogConsole>

Support & Learning Resources

Find Assistance