New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Render Modes

  • Render mode comparison
Render mode
Classic vs. Light rendering
Classic Lightweight
Markup Size 33.80 KB 33.75 KB
CSS Size 77 KB 39.4 KB
Image Sprite Size * 118 KB 0 KB

This demo showcases the two different rendering modes of Telerik's ASP.NET Image Editor control: Classic and Lightweight.

  • Classic rendering is the long-standing rendering mode of the control in which many image sprites are used (e.g., for buttons).
  • Lightweight rendering leverages HTM5 and CSS3 to deliver semantic HTML to the browser, but the control may lose its rounded corners, gradients and shadows in non-modern browsers. With this rendering, the image sprites are replaced with font-icons.

The default render mode of the control is Classic and you have the option to either explicitly set it to Lightweight or leverage the Auto mode to have the control choose the best rendering based on the user's browser.

Note: In order to provide optimal experience for your end users, we recommend that you use only one type of render mode for a control on a given page. For example, if you have two instances of RadImageEditor on the page, it will be best if both of them use the same render mode.

Note: The Material skin is available only for the modern Lightweight render mode. Change the skin or the mode to properly visualize the demonstrated control.

Notes on the statistics:
The markup size is calculated by copying the HTML sent from the server and evaluating its size.
* - The Lightweight RenderMode of RadImageEditor uses WebFont instead of image sprites for its tools' icons which offer more benefits over the images.

  • DefaultCS.aspx
    • DefaultCS.aspx
    • ImageEditorCS.aspx
  • DefaultCS.aspx.cs
    • DefaultCS.aspx.cs
    • ImageEditorCS.aspx.cs
  • scripts.js
  • imageEditorStyles.css
    • imageEditorStyles.css
    • styles.css
<%@ Page Language="c#" AutoEventWireup="true" Inherits="Telerik.Web.Examples.ImageEditor.RenderModes.DefaultCS"CodeFile="DefaultCS.aspx.cs"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="stylesheet" href="styles.css" />
    <script type="text/javascript" src="scripts.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div id="demo-container" class="demo-container">
    </div>
    <qsf:ConfiguratorPanel ID="ConfigurationPanel1" runat="server" Title="Render mode comparison">
        <Views>
            <qsf:View>
                <qsf:ConfiguratorColumn runat="server" Size="Narrow" Title="Render mode">
                    <qsf:RadioButtonList ID="cbChooseRenderMode" runat="server" AutoPostBack="True"
                        OnSelectedIndexChanged="ChooseRenderMode_SelectedIndexChanged"
                        CssClass="fb-group" RepeatLayout="UnorderedList">
                        <asp:ListItem Value="Classic">Classic</asp:ListItem>
                        <asp:ListItem Value="Lightweight" Selected="True">Lightweight</asp:ListItem>
                    </qsf:RadioButtonList>
                </qsf:ConfiguratorColumn>
                <qsf:ConfiguratorColumn runat="server" Size="Wide" Title="Classic vs. Light rendering">
                    <table class="table" cellspacing="0">
                        <thead>
                            <tr>
                                <th></th>
                                <th>Classic</th>
                                <th>Lightweight</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <th>Markup Size</th>
                                <td><asp:Label ID="ClassicSize" runat="server" /></td>
                                <td><asp:Label ID="LightweightSize" runat="server" /></td>
                            </tr>
                            <tr>
                                <th>CSS Size</th>
                                <td>77 KB</td>
                                <td>39.4 KB</td>
                            </tr>
                            <tr>
                                <th>Image Sprite Size *</th>
                                <td>118 KB</td>
                                <td>0 KB</td>
                            </tr>
                        </tbody>
                    </table>
                </qsf:ConfiguratorColumn>
            </qsf:View>
        </Views>
    </qsf:ConfiguratorPanel>
    <script type="text/javascript">
        renderModeDemo.frameSrc = "<%= FrameSrc %>";
    </script>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance