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

Setting Content

Via the Content property from code-behind

  • Show/Hide Border
  • Table Properties
  • Delete Table
  • Row
    • Insert Row Above
    • Insert Row Below
    • Delete Row
  • Column
    • Insert Column to the Left
    • Insert Column to the Right
    • Delete Column
  • Cell
    • Merge Cells Horizontally
    • Merge Cells Vertically
    • Split Cell Horizontally
    • Split Cell Vertically
    • Delete Cell
  • Cell Properties
  • Table Properties
  • Properties...
  • Image Map Editor
  • Properties...
  • OpenLink
  • Remove Link
  • Insert Select
  • Cut
  • Copy
  • Paste
  • Paste from Word
  • Paste Plain Text
  • Paste As Html
  • Paste Html

Declaratively

  • Show/Hide Border
  • Table Properties
  • Delete Table
  • Row
    • Insert Row Above
    • Insert Row Below
    • Delete Row
  • Column
    • Insert Column to the Left
    • Insert Column to the Right
    • Delete Column
  • Cell
    • Merge Cells Horizontally
    • Merge Cells Vertically
    • Split Cell Horizontally
    • Split Cell Vertically
    • Delete Cell
  • Cell Properties
  • Table Properties
  • Properties...
  • Image Map Editor
  • Properties...
  • OpenLink
  • Remove Link
  • Insert Select
  • Cut
  • Copy
  • Paste
  • Paste from Word
  • Paste Plain Text
  • Paste As Html
  • Paste Html

RadEditor provides 2 different ways to set its content:

  1. Setting the content programmatically:
    RadEditor1.Content = "<strong>Sample HTML Content Loaded via the Content property</strong>."
  2. Inline in the RadEditor declaration: RadEditor offers to set content directly in the ASPX or ASCX file

    <telerik:RadEditor runat="server" ID="RadEditor2">
            
    <Content>
                
            <strong>Sample HTML content set inline in the RadEditor declaration</strong>
            
    </Content>
    </telerik:RadEditor>

Related Resources

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page Theme="Default" Language="vb" CodeFile="DefaultVB.aspx.vb"Inherits="Telerik.Web.Examples.Editor.Default.DefaultVB"  %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
        <div class="demo-container size-medium">
            <h2>Via the Content property from code-behind</h2>
            <telerik:RadEditor RenderMode="Lightweight" runat="server" ID="RadEditor1" Height="200px" Width="600px" SkinID="MinimalSetOfTools">
            </telerik:RadEditor>
        </div>
        <div class="demo-container size-medium">
            <h2>Declaratively</h2>
            <telerik:RadEditor RenderMode="Lightweight" runat="server" ID="RadEditor2" Height="200px" Width="600px" SkinID="MinimalSetOfTools">
                <Content>
                    <strong>Sample HTML content set inline in the RadEditor declaration</strong>
                </Content>
            </telerik:RadEditor>
        </div>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance