RadEditor for ASP.NET AJAX

RadControls for ASP.NET AJAX

By default, all RadEditor dialogs are embedded as resource fils in the Telerik.Web.UI.dll file, which makes their customization harder. In order to provide an easy way to modify the editor's dialogs, the RadControls installation now comes with an extra folder named EditorDialogs which contains the dialogs' ascx files. You can configure RadEditor to use the external dialog files by copying the EditorDialogs folder to the root of the web application and setting the ExternalDialogsPath property to point to it, e.g.

CopyXML
<telerik:RadEditor ID="RadEditor1" ExternalDialogsPath="~/EditorDialogs" runat="server">
    <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" />
</telerik:RadEditor>

Example:

The example below demonstrates how to hide the "New Folder" button in all the dialogs containing FileExplorer. Here are the steps:

  1. Copy the EditorDialogs folder to the root of the web application.

  2. Set the ExternalDialogsPath property to point to the EditorDialogs folder

  3. Open the FileBrowser.ascx file, which is in the EditorDialogs folder and locate the following control, which represent the FileExplorer:

    CopyXML
    <telerik:RadFileExplorer ID="RadFileExplorer1" Height="450px" Width="400px" TreePaneWidth="150px"
        runat="Server" EnableOpenFile="false" AllowPaging="true" />
  4. To hide the "New Folder" button set the EnableCreateNewFolder property to false.

    CopyXML
    <telerik:RadFileExplorer ID="RadFileExplorer1" Height="450px" Width="400px" TreePaneWidth="150px"
        EnableCreateNewFolder="false" runat="Server" EnableOpenFile="false" AllowPaging="true" />
  5. Save the file and test the editor.