This is a migrated thread and some comments may be shown as answers.

EditroDialogsPath not referencing the corresponding folder after the build

1 Answer 147 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Srinivas
Top achievements
Rank 1
Srinivas asked on 19 Jul 2008, 08:19 AM
Hi

I am using the FindAndReplace dialogs. In order to hide the Replace tab in the FindAndReplace dialog, I have copied the EditorDialogs directory from the RadControls installation to the author folder of my application and set the ExternalDialogsPath property of the Radeditor to the path referencing the above created folder. Below is the exact path 

ExternalDialogsPath

="~/app/authoring/author/EditorDialogs/EditorDialogsForLOs"

I have also added the below statement in the user control
this._tab._tabs[1].style.display = "none";

the above statement is added just below the statement
this._tab = $find("dialogtabstrip");

In the EditorDialogs folder I have created one more folder named EditorDialogsForLOs where we have the FindAndReplace.ascx user control file.

ExternalDialogsPath is pointing to the folder where I have copied the FindAndReplace.ascx user control. But when I build and install the application I don't see the user control file inthe location and also it is showing the Replace tab in the FindAndReplace popup. It perhaps is not pointing to the exact location and may be it is taking the default location from the dll.

Please let me know if the above procedure is correct. Can't I set the ExternalDialogsPath to the exact location of the FindAndReplace.ascx where ever it is?

Thanks,
Srinivas Vaidya.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 22 Jul 2008, 12:01 PM
Hi Srinivas,

It seems that you have done all steps correctly and you should not experience this problem. I made a simple test by following your instructions, e.g.

  1. Placed the FindAndReplace.ascx and the rest of the dialogs' files in the \app\authoring\author\EditorDialogs\EditorDialogsForLOs\ folder
     
  2. Set the ExternalDialogsPath property to point to the ~/app/authoring/author/EditorDialogs/EditorDialogsForLOs folder

    <telerik:RadEditor id="RadEditor1" ExternalDialogsPath="~/app/authoring/author/EditorDialogs/EditorDialogsForLOs" runat="server"></telerik:RadEditor>   
     
  3. Modified the FindAndReplace.ascx file by setting

            this._tab = $find("dialogtabstrip");
            this._tab._tabs[1].style.display = "none";

    and saved it.
  4. When I loaded the dialog the Replace tab was hidden.
You can see my test in the attached video as well as test my project.

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Srinivas
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or