Distorted Appearance

This help article describes what to do when you have an appearance issue with RadLinkButton and provides a resolution.

The appearance of RadLinkButton may be distorted (Figure 1) when the control is declarted on the same page that contains a RadButton with a Classic RenderMode (i.e., the default RenderMode).

Figure 1: Distorted appearance of RadLinkButton when placed on the same page with RadButton RenderMode="Classic".

distorted appearance

Example 1: The code that reproduces the appearance issue from Figure 1.

<telerik:RadLinkButton ID="RadLinkButton1" runat="server" Text="RadLinkButton" NavigateUrl="http/www.telerik.com">
    <Icon CssClass="rbOk" />
<br />
<telerik:RadButton RenderMode="Lightweight" ID="RadButton1" runat="server" Text="RadButton" />

Cause of the Problem

Generally, controls from the TelerikĀ® UI for ASP.NET AJAX suite that use the same styles support only a single type of RenderMode per page. This also includes instances from user controls and master pages.

RadButton, RadLinkButton and controls that utilize them, however, share similar resources. Since RadLinkButton supports only a Lightweight RenderMode, its styles may interfere with the styles of the Classic RadButton. The improper appearance is shown in Figure 1 and the code that creates it shown in Example 1.

How to Resolve It

To resolve this issue you should:

There are two ways to configure the rendering mode of the controls:

  • The RenderMode property in the markup or in the code-behind that can be used for a particular instance:


    <telerik:RadButton ID="RadButton1" runat="server" RenderMode="Lightweight">


    RadButton1.RenderMode = Telerik.Web.UI.RenderMode.Lightweight;


    RadButton1.RenderMode = Telerik.Web.UI.RenderMode.Lightweight
  • A global setting in the web.config file that will affect the entire application, unless a concrete value is specified for a given control instance:


        <add key="Telerik.Web.UI.Button.RenderMode" value="lightweight" />
  • Render Modes

  • Client-side Click Event Handler Is Not Executed

  • Event Handlers Are Not Raised

  • RadButton Not Performing Postback

In this article
Not finding the help you need? Improve this article