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

Unique Item Appearance

  • Contacts
  • Offices
  • Support

The various CSS and image-related properties of the toolbar items let you make each item look unique.

This example shows how you can make the appearance of each item unique by using the CssClass and ImageUrl properties of the toolbar items.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="ToolBar.Examples.Appearance.Images.DefaultCS" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container">
        <telerik:RadToolBar RenderMode="Lightweight" runat="server" ID="RadToolBar1">
            <Items>
                <telerik:RadToolBarButton CssClass="social-icon facebook" ImageUrl="~/ToolBar/Examples/Appearance/UniqueItemAppearance/images/social/facebook.png">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton CssClass="social-icon dribbble" ImageUrl="~/ToolBar/Examples/Appearance/UniqueItemAppearance/images/social/dribbble.png">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton CssClass="social-icon twitter" ImageUrl="~/ToolBar/Examples/Appearance/UniqueItemAppearance/images/social/twitter.png">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton CssClass="social-icon google-plus" ImageUrl="~/ToolBar/Examples/Appearance/UniqueItemAppearance/images/social/google-plus.png">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton CssClass="social-icon pinterest" ImageUrl="~/ToolBar/Examples/Appearance/UniqueItemAppearance/images/social/pinterest.png">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="~/ToolBar/Examples/Appearance/UniqueItemAppearance/images/light_skins/contact_us.png" Text="Contacts">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="~/ToolBar/Examples/Appearance/UniqueItemAppearance/images/light_skins/Offices.png" Text="Offices">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="~/ToolBar/Examples/Appearance/UniqueItemAppearance/images/light_skins/Support.png" Text="Support">
                </telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance