Office2010Blue skin

PanelBar - Server-side Events

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

Event log

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

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.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Language="vb" CodeFile="DefaultVB.aspx.vb" AutoEventWireup="true" Inherits="PanelBar.Examples.ServerSide.ServerSideEvents.DefaultVB" %>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<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>

Find Assistance

Help Us Improve

Was this example helpful?