LinkButton - Embedded Icons

Icon Class Name RadLinkButton
rbAdd
rbRemove
rbOk
rbCancel
rbUpload
rbDownload
rbPrevious
rbNext
rbOpen
rbAttach
rbSave
rbConfig
rbPrint
rbRefresh
rbSearch
rbHelp
rbCart
rbEdit
rbRSS
rbMail
rbFB
rbTwitter
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

To make the RadLinkButton control even easier to work with, we have provided a set of built-in icons that can be displayed on the button. Simply set the predefined CSS class to the CssClass property. All of the predefined classes are shown in the example and can be used for reference.

For example, using CssClass='rbOk' will render the embedded OK icon on the left side of the button.

  • DefaultCS.aspx
  • styles.css
<%@ Page Language="c#"  %>

<!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>
    <link href="styles.css" rel="stylesheet" type="text/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 size-narrow">
        <asp:Panel ID="Panel1" runat="server">
            <table class="predIcons">
                <thead>
                    <tr>
                        <th>Icon</th>
                        <th>Class Name</th>
                        <th>RadLinkButton</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="rborder">
                            <span class="rbAdd16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbAdd</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton1" runat="server" Text="Add" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbAdd"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbRemove16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbRemove</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton2" runat="server" Text="Remove" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbRemove"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbOk16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbOk</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton3" runat="server" Text="OK" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbOk"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbCancel16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbCancel</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton4" runat="server" Text="Cancel" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbCancel"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbUpload16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbUpload</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton5" runat="server" Text="Upload" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbUpload"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbDownload16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbDownload</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton6" runat="server" Text="Download" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbDownload"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbPrevious16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbPrevious</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton7" runat="server" Text="Previous" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbPrevious"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbNext16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbNext</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton8" runat="server" Text="Next" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbNext"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbOpen16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbOpen</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton9" runat="server" Text="Open" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbOpen"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbAttach16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbAttach</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton10" runat="server" Text="Attach" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbAttach"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbSave16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbSave</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton11" runat="server" Text="Save" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbSave"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbConfig16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbConfig</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton12" runat="server" Text="Config" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbConfig"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbPrint16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbPrint</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton13" runat="server" Text="Print" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbPrint"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbRefresh16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbRefresh</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton14" runat="server" Text="Refresh" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbRefresh"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbSearch16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbSearch</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton15" runat="server" Text="Search" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbSearch"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbHelp16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbHelp</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton16" runat="server" Text="Help" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbHelp"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbCart16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbCart</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton17" runat="server" Text="Shopping Cart" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbCart"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbEdit16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbEdit</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton18" runat="server" Text="Edit" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbEdit"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbRSS16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbRSS</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton19" runat="server" Text="RSS Feed" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbRSS"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbMail16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbMail</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton20" runat="server" Text="Mail" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbMail"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="rborder">
                            <span class="rbFB16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbFB</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton21" runat="server" Text="FaceBook" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbFB"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td class="rborder">
                            <span class="rbTwitter16 rbPredefinedIcons"></span>
                        </td>
                        <td>
                            <span class="text">rbTwitter</span>
                        </td>
                        <td>
                            <telerik:RadLinkButton ID="RadLinkButton22" runat="server" Text="Twitter" NavigateUrl="http://www.telerik.com/" Target="_blank">
                                <Icon CssClass="rbTwitter"></Icon>
                            </telerik:RadLinkButton>
                        </td>
                    </tr>
                </tbody>
            </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>

Find Assistance

Help Us Improve

Was this example helpful?