RadEditor in asp.net using Telerik Controls Dll

First you have to add the Telerik.Web.UI.dll in Bin

folder and Then right click on the toolbox and add new

tab. right click on the tab and click on choose item

and then browse the dll from your project's bin folder

You have to add folder App_Data. in this folder you

have to make a new folder name RadSpell and copy a file

en-Us.tdf in this.This file is used to check the

Spelling and autocorrect it.

in the .aspx page:
<%@ Register Assembly="Telerik.Web.UI"

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

  <form id="form1" runat="server">
        <telerik:RadScriptManager ID="ScriptManager1"

runat="server" EnableTheming="True">
        </telerik:RadScriptManager>
            
        
        <asp:updatepanel id="UpdatePanel1"

runat="server">
            <contenttemplate>
                <telerik:radeditor id="RadEditor1"

runat="server" Skin="Outlook" ToolsFile

="~/ToolsFile.xml">
                    <Content>
</Content>
                    

                </telerik:radeditor>
               
                &nbsp;
            </contenttemplate>
        </asp:updatepanel>
          
    </form>

ToolsFile.Xml:

<?xml version="1.0" encoding="utf-8" ?>
<root>  

  <tools name="MainToolbar"  enabled="true">     
 <tool name="Unlink"/>
    <tool name="ToggleTableBorder"/>
    <tool name="ToggleScreenMode"/>   
    <tool name="InsertSymbol"/>
    <tool name="Undo"/>
    <tool name="Redo"/>
    <tool name="Cut"/>
    <tool name="Copy"/>
    <tool name="Paste" shortcut="CTRL+v"/>
    <tool name="PasteFromWord"/>
    <tool name="PastePlainText"/>
    <tool name="PasteAsHtml"/>
    <tool name="Print"/>
    <tool name="FindAndReplace"/>
    <tool name="SelectAll"/>
    <tool name="InsertParagraph"/>
    <tool name="InsertDate"/>
    <tool name="InsertTime"/>
    <tool name="Bold"/>
    <tool name="Italic"/>
    <tool name="Underline"/>
    <tool name="JustifyLeft"/>
    <tool name="JustifyCenter"/>
    <tool name="JustifyRight"/>
    <tool name="JustifyFull"/>
    <tool name="JustifyNone"/>
  </tools>
 
  <tools enabled="true">   
    <tool name="ajaxspellcheck" />
    <tool name="InsertTable"/>
    <tool name="ConvertToLower"/>
    <tool name="ConvertToUpper"/>
    <tool name="Indent"/>
    <tool name="Outdent"/>
    <tool name="InsertOrderedList"/>
    <tool name="InsertUnorderedList"/>
    <tool name="ForeColor"/>
    <tool name="BackColor"/>
    <tool name="FontName"/>
    <tool name="FontSize"/>
    <tool name="RealFontSize"/>   
    <tool name="FormatBlock"/>
    <tool name="Zoom"/>
  </tools>  
</root>

In web.config File:
    <httpHandlers>
            <add

path="Telerik.Web.UI.DialogHandler.aspx"

type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI,

Version=2008.3.1125.20, Culture=neutral,

PublicKeyToken=121fae78165ba3d4" verb="*"

validate="false"/>
            <add

path="Telerik.Web.UI.SpellCheckHandler.axd"

type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI,

Version=2008.3.1125.20, Culture=neutral,

PublicKeyToken=121fae78165ba3d4" verb="*"

validate="false"/>
            <add

path="Telerik.Web.UI.WebResource.axd"

type="Telerik.Web.UI.WebResource, Telerik.Web.UI,

Version=2008.3.1125.20, Culture=neutral,

PublicKeyToken=121fae78165ba3d4" verb="*"

validate="false"/>
        </httpHandlers>

Ebook Download
View all
Learn
View all