5 posts, 0 answers
  1. Steve
    Steve avatar
    1871 posts
    Member since:
    Dec 2008

    Posted 12 Jun 2011 Link to this post

    Is there any way to have the button look like the cool skinned buttons while giving me NavigateUrl?...instead of the button falling back to the LinkButton look when NavURL is used?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Jun 2011 Link to this post

    Hello Steve,

    As far as I know there is no easy way to make both link buttons and standard buttons to appear the same way having the standard button look and feel. They have different rendering depending on their front-end requirements. One suggestion is to create custom skin for the RadButton.

    Please go through the following tutorial for more on creating custom skin.
    Creating a Custom Skin for RadButton

  3. Slav
    Slav avatar
    1359 posts

    Posted 13 Jun 2011 Link to this post

    Hi Steve,

    If you handle the client-side event OnClientClicking you can keep the button look without having to change the ButtonType property to LinkButton. In the event handler you must open with Javascript the URL, specified in the NavigateUrl property and after that you should cancel the event and postback.

    Below is a sample, showing how to achieve this:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ButtonRedirect.aspx.cs" Inherits="ButtonRedirect" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <head runat="server">
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            <script type="text/javascript">
                function OnClientClicking(button, args) {
                    window.location = button.get_navigateUrl();
            <telerik:RadButton ID="RadButton" runat="server" Text="RadButton" NavigateUrl="" OnClientClicking="OnClientClicking">

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  4. Tom
    Tom avatar
    45 posts
    Member since:
    Oct 2010

    Posted 18 Jul 2014 in reply to Slav Link to this post

    Thanks for the code--this is super helpful.
  5. kengsheng
    kengsheng avatar
    1 posts
    Member since:
    Sep 2014

    Posted 11 Sep 2014 in reply to Slav Link to this post

    This is super helpful and simple! Thank you very much! =D
Back to Top