This is a migrated thread and some comments may be shown as answers.

RadLinkButton + RadButton and RenderMode

2 Answers 173 Views
LinkButton
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Iron
Iron
Kjell asked on 10 Feb 2016, 03:23 PM

 Have problems with the icons on the RadLinkButton when using RadButton on the same page. For the icons to display on each button, I must put RenderMode to Lightweight on RadButton. See attached Pictures...

 

<div id="HeadCell" class="table">
    <div class="tr">
        <div class="td" style="vertical-align: top; padding-left: 6px; padding-top: 2px;">
            <telerik:RadLinkButton ID="rbBack" Skin="Black" Text="Tillbaka" NavigateUrl="~/admin/admin_start.aspx" runat="server">
                <Icon Url="~/admin/images/buttons/btn_tillbaka.png" Width="20" />
            </telerik:RadLinkButton>  
            <telerik:RadLinkButton ID="rbNewPage" Skin="Black" Text="Ny huvudsida" NavigateUrl="~/admin/newpage/default.aspx" runat="server">
                <Icon Url="~/admin/images/buttons/btn_nysida.png" Width="20" />
            </telerik:RadLinkButton>  
            <telerik:RadLinkButton ID="rbNewSubPage" Skin="Black" Text="Ny undersida" NavigateUrl="~/admin/newsubpage/default.aspx" runat="server">
                <Icon Url="~/admin/images/buttons/btn_nysubsida.png" Width="20" />
            </telerik:RadLinkButton>  
            <telerik:RadLinkButton ID="rbLogOut" Skin="Black" Text="Logga ut" NavigateUrl="~/admin/logout/default.aspx" runat="server">
                <Icon Url="~/admin/images/buttons/btn_loggaut.png" Width="20" />
            </telerik:RadLinkButton>
        </div>
        <div class="td" style="width: 100px; padding: 0px; padding-right: 6px; text-align: right;"><asp:HyperLink ID="HlStartPage" ImageUrl="~/admin/images/buttons/btn_home.png" NavigateUrl="~/default.aspx" Target="_top" ToolTip="www.junis.org" CausesValidation="false" runat="server" /></div>
    </div>
</div>

2 Answers, 1 is accepted

Sort by
0
Kjell
Top achievements
Rank 1
Iron
Iron
answered on 10 Feb 2016, 05:25 PM
Applies telerik:RadFileExplorer too. Must enter RenderMode="Lightweight" on RadFileExplorer for the icons get right on the RadLinkButton
0
Ianko
Telerik team
answered on 15 Feb 2016, 07:46 AM
Hi Kjell,

The described behavior with RadLinkButton is expected. This is noted in these materials:

The reason for this behavior is that the LinkButton is always rendered with Lightweight rendering, and Classic is not supported with this control. Thus, rendering any other control that is RadButton or RadButton is its child control (e.g., RadFileExplorer) with Classic rendering links the CSS for this render mode and breaks the layout of RadLinkButton. 

The only possible solution for that is to switch these controls (RadButton and RadFileExplorer) to Lightweight rendering. 


Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
LinkButton
Asked by
Kjell
Top achievements
Rank 1
Iron
Iron
Answers by
Kjell
Top achievements
Rank 1
Iron
Iron
Ianko
Telerik team
Share this question
or