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

ExternalDialogsPath property

By default, all RadEditor dialogs are embedded as resource files 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 Telerik® UI for ASP.NET AJAX suite installation now comes with an extra folder named EditorDialogswhich contains the dialogs' ascx files. You can configure RadEditor to use the external dialog files by copying the EditorDialogsfolder to the root of the web application and setting the ExternalDialogsPathproperty to point to it, e.g.


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

  1. Copy the EditorDialogsfolder to the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.01f131a624888eeed/Resources/**foder.

  2. Set the ExternalDialogsPathproperty to point to the EditorDialogs folder. In order to do this add the following element in the respective ConfigFilie.xml and ListConfigFile.xml (for list, wiki, blog ...).


    <property name="ExternalDialogsPath">/_wpresources/RadEditorSharePoint/5.x.x.0**1f131a624888eeed/Resources/EditorDialogs</property>
  3. Open the FileBrowser.ascx file, which is in the EditorDialogsfolder and locate the following control, which represent the FileExplorer:


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


    <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.

In this article