Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Button / Bigger Icons and Buttons

Standard Button and standard font size
Standard Button with 24px Primary Icon and larger font-size
Standard Button with 24px Secondary Icon and larger font-size
Standard Button with 24px Primary and Secondary Icons and larger font-size
Standard Button with 16px Primary Icon and larger font-size
Standard Button with 16px Secondary Icon and larger font-size
Standard Button with 24px Primary Icon, vertical positioning with icon on top
Standard Button with 24px Secondary Icon, vertical positioning with icon on bottom

  • RadButton offers a predefined height of 65 pixels for the StandardButton, in which the text and icons could be positioned vertically and horizontally.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="vb" AutoEventWireup="true" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <!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">
        <qsf:HeadTag ID="Headtag1" runat="server" />
        <style type="text/css">
            .predIcons
            {
                font-family: "Segoe UI" ,Arial,Helvetica,sans-serif;
                font-size: 12px;
                border-collapse: collapse;
                margin: 0 auto;
                color: #000;
            }
            .predIcons td
            {
                padding: 6px 6px 6px 10px;
                border: 1px solid #ddd;
            }
            .predIcons tr
            {
                background-color: #fff;
            }
            .predIcons tr.dark
            {
                background-color: #efefef;
            }
            .predIcons tr:hover
            {
                background-color: #FDFEE3;
            }
            .predIcons tr.head
            {
                border: 0;
                background: transparent;
            }
            .predIcons tr.head:hover
            {
                background: none;
            }
            .predIcons tr.head td
            {
                border: 0;
            }
            .rbPredefinedIcons
            {
                display: block;
                float: left;
                width: 16px;
                height: 16px;
                background-image: url(img/rbPredefinedIcons.png);
            }
            .text
            {
                display: block;
                width: 100px;
                float: right;
                text-align: left;
                padding-right: 15px;
            }
            .predIcons .rborder
            {
                border-right: 3px solid #ddd;
                padding-right: 10px;
            }
            
            .vTextTop .rbDecorated
            {
                padding-top: 30px !important;
            }
            
            /* IE7 fix */
            * + html .vTextTop .rbDecorated
            {
                padding-top: 20px !important;
            }
            
            .vTextBot .rbDecorated
            {
                padding-bottom: 30px !important;
            }
            
            /* IE7 fix */
            * + html .vTextBot .rbDecorated
            {
                line-height: 30px !important;
            }
        </style>
    </head>
    <body class="BODY">
        <form id="Form1" method="post" runat="server">
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="VB" />
        <telerik:RadScriptManager ID="ScriptManager" runat="server" />
        <asp:Panel ID="Panel1" runat="server">
            <table cellpadding="0" cellspacing="0" border="0" class="predIcons">
                <thead>
                    <tr>
                        <td style="width: 200px;">
                            <label>
                                <strong>Button Description</strong>
                            </label>
                        </td>
                        <td style="width: 200px;">
                            <label>
                                <strong>Button</strong></label>
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            Standard Button and standard font size
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton1" runat="server" Text="Standard Button" Height="65px"
                                AutoPostBack="false">
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td>
                            Standard Button with 24px Primary Icon and larger font-size
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton3" runat="server" Text="Add" Height="65px" AutoPostBack="false"
                                Font-Size="18px">
                                <Icon PrimaryIconCssClass="rbAdd24" PrimaryIconLeft="8" PrimaryIconTop="20" />
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Standard Button with 24px Secondary Icon and larger font-size
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton2" runat="server" Text="Remove" Height="65px" AutoPostBack="false"
                                Font-Size="20px" ForeColor="Red">
                                <Icon SecondaryIconCssClass="rbRemove24" SecondaryIconRight="8" SecondaryIconTop="20" />
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td>
                            Standard Button with 24px Primary and Secondary Icons and larger font-size
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton4" runat="server" Text="Social Networks" Height="65px"
                                AutoPostBack="false" Font-Size="18px">
                                <Icon PrimaryIconCssClass="rbFB24" SecondaryIconCssClass="rbTwitter24" />
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Standard Button with 16px Primary Icon and larger font-size
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton5" runat="server" Text="Print" Height="65px" AutoPostBack="false"
                                Font-Size="18px">
                                <Icon PrimaryIconCssClass="rbPrint" PrimaryIconLeft="12" PrimaryIconTop="25" />
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr class="dark">
                        <td>
                            Standard Button with 16px Secondary Icon and larger font-size
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton6" runat="server" Text="Add to Cart" Height="65px"
                                AutoPostBack="false" Font-Size="18px">
                                <Icon SecondaryIconCssClass="rbCart" SecondaryIconRight="12" SecondaryIconTop="25" />
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Standard Button with 24px Primary Icon, vertical positioning with icon on top
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton7" runat="server" Text="FaceBook" Height="65px" Width="100px"
                                AutoPostBack="false" CssClass="vTextTop">
                                <Icon PrimaryIconCssClass="rbFB24" PrimaryIconLeft="40" PrimaryIconTop="8" />
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Standard Button with 24px Secondary Icon, vertical positioning with icon on bottom
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton8" runat="server" Text="Twitter" Height="65px" Width="100px"
                                AutoPostBack="false" CssClass="vTextBot">
                                <Icon SecondaryIconCssClass="rbTwitter24" SecondaryIconLeft="40" SecondaryIconTop="35" />
                            </telerik:RadButton>
                        </td>
                    </tr>
                </tbody>
            </table>
        </asp:Panel>
        <qsf:Footer runat="server" ID="Footer1" ShowCodeViewer="true" />
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451