R1 2019 Release is now here with MultiColumnComboBox component and more! Register now for the Webinar.

PanelBar - Text with Icons

  • Index
    • Feel comfortable gambling
    • English Lessons - homework
    • Telerik UI for ASP.NET AJAX
  • Outbox
    • Free Exam Retakes with Second Shot
    • Feel comfortable with Gate Casino!
    • Update and resources from Microsoft
  • Trash
    • Update and resources from Microsoft
    • MCP Flash: March 2008
  • Contacts
    • My Contacts
    • Address Cards
    • Phone List
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

With RadPanelBar you can disaply images inside the items, in front of the item's text.

You can use the ImageUrl property to determine the image to be displayed when the panel item is collapsed, the ExpandedImageUrl to change the image when the item is expanded and HoveredImageUrl to change the image when the item is hovered.

Furthermore, you can change the image position by using ImagePosition property.

  • DefaultCS.aspx
<%@ Page Inherits="Telerik.QuickStart.QsfPage"  %>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>

    <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" ID="RadPanelBar1" runat="server" Width="100%">
                <telerik:RadPanelItem ImageUrl="images/inbox.gif" Text="Index" runat="server" Expanded="True">
                        <telerik:RadPanelItem runat="server" Text="Feel comfortable gambling" ImageUrl="images/3.gif" />
                        <telerik:RadPanelItem runat="server" Text="English Lessons - homework" ImageUrl="images/4.gif" />
                        <telerik:RadPanelItem runat="server" Text=" Telerik UI for ASP.NET AJAX" ImageUrl="images/5.gif" />
                <telerik:RadPanelItem ImageUrl="images/outbox.gif" Text="Outbox" runat="server">
                        <telerik:RadPanelItem runat="server" Text="Free Exam Retakes with Second Shot" ImageUrl="images/3.gif" />
                        <telerik:RadPanelItem runat="server" Text="Feel comfortable with Gate Casino!" ImageUrl="images/3.gif" />
                        <telerik:RadPanelItem runat="server" Text="Update and resources from Microsoft" ImageUrl="images/3.gif" />
                <telerik:RadPanelItem ImageUrl="images/trash.gif" Text="Trash" runat="server">
                        <telerik:RadPanelItem runat="server" Text="Update and resources from Microsoft" ImageUrl="images/3.gif" />
                        <telerik:RadPanelItem runat="server" Text="MCP Flash: March 2008" ImageUrl="images/4.gif" />
                <telerik:RadPanelItem Text="Contacts" ImageUrl="images/contacts.gif">
                        <telerik:RadPanelItem ImageUrl="images/contactsItems.gif" Text="My Contacts" />
                        <telerik:RadPanelItem ImageUrl="images/contactsItems.gif" Text="Address Cards" />
                        <telerik:RadPanelItem ImageUrl="images/contactsItems.gif" Text="Phone List" />
            <CollapseAnimation Duration="0" Type="None" />
            <ExpandAnimation Duration="0" Type="None" />

Find Assistance

Help Us Improve

Was this example helpful?