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

Configure Asp.net Telerik editor Dialog when EnableEmbededScript is OFF

7 Answers 224 Views
Editor
This is a migrated thread and some comments may be shown as answers.
mohmedsadiq modan
Top achievements
Rank 1
mohmedsadiq modan asked on 21 Sep 2012, 10:04 AM

Hello,

I have used asp.net telerik RadEditor control in web-site and to host this website in Shared hosting server, I have to disable Telerik.EnableEmbeddedScripts and add required scripts in page but Dialog of RadEditor is not working.

My site is hosted in FastHost shared hosting server. Other controls of Telerik is worked perfect. Version of Telerik is 2011.3.1115.35

Can any one have solution to enable dialogs for editor control in any shared hosting server?

Thanks,
Mohmedsadiq

7 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Sep 2012, 10:44 AM
Hi,

I am not sure why you have disabled the embedded scripts of the controls in your shared hosting environment. Do the controls not work in it with disabled scripts?

My suggestion is to test with enabled CDN scripts or configure your own custom CDN provider which will automatically import the dialog scripts?

If you disable the scripts, you will need to create a handler file (EditorDialogScripts.zip - this file is old and created for Q1 SP2 2009) containing the dialog scripts of RadEditor and import it via the DialogsScriptFile property of RadEditor (DialogsScriptFile="~/Scripts/EditorDialogScripts.ashx"), which is a time consuming and not straightforward process.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
mohmedsadiq modan
Top achievements
Rank 1
answered on 27 Sep 2012, 07:06 AM
Hello Rumen,

Thanks for you response.

I  am not able to download EditorDialogScripts.zip file, can you please upload it again.

To Enable CDN, do I have to purchase anything from telerik site, My client has purchased Telerik Ajax Asp.Net control.

Thanks,
Mohmedsadiq.
0
Rumen
Telerik team
answered on 27 Sep 2012, 09:10 AM
Hello Mohmedsadiq,

Please, find attached the requested file.

You should not buy anything to enable the CDN scripts.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sam
Top achievements
Rank 1
answered on 27 Sep 2012, 11:06 AM
Hello Rumen,

Thanks for Quick response,

Actually, I have disabled embedded scripts because Fasthost shared hosting server does not allow to enter information of Telerik control in httpgandlers section and httpmodule section. If I use <Telerik:ScriptManager in page without entry of telerik control in httpgandlers and httpmodule  then it throws error.
~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config
If I replace <Telerik:ScriptManager with <asp:ScriptManager and add required script file in Script block then it's worked.

How can I configure CDN feature in my web-site so I can use it in Shared hosting server.

Regards,
Mohmedsadiq
0
Rumen
Telerik team
answered on 27 Sep 2012, 12:35 PM
Hello Mohmedsadiq,

In such case, you can try the solution provided in this forum thread: Telerik CDN without RadScriptManager.

See this screenshot for more information about the loaded js files in the Image Manager from the CDN server: http://screencast.com/t/FGnqFBLqnCqV.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
mohmedsadiq modan
Top achievements
Rank 1
answered on 28 Sep 2012, 06:24 AM
Hello Rumen,

Thanks for your quick response,

I have applied changes suggested in your reply, It gives me error like Telerik is not defined.

Default.aspx
<div>
    <asp:ScriptManager ID="ss" runat="server"></asp:ScriptManager>       
        <telerik:RadEditor ID="dd" runat="server">
        </telerik:RadEditor>
</div>
Web.config configuration for CDN
<appSettings>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
    <add key="Telerik.EnableEmbeddedScripts" value="false" />
    <add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="http://aspnet-scripts.telerikstatic.com" />
</appSettings>

As you know I am not able to add Telerik configuration in HttpHandlers and HttpModule section of web.config because our Share hosting server is not supporting it.

Please suggest best solution for this.

Thanks in advanced,
Mohmedsadiq.
0
Rumen
Telerik team
answered on 29 Sep 2012, 11:42 AM
Hello,

I was able to configure RadEditor's dialogs without registering their handlers in the web.config file by:
1) Creating a file named Telerik.Web.UI.DialogHandler.aspx in the root of the web site with the following content:
<%@ Page Language="C#" Inherits="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" %>

2) and setting the DialogHandlerUrl property to point to it "~/Telerik.Web.UI.DialogHandler.aspx", e.g.

<telerik:RadEditor ID="RadEditor1" runat="server"     DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx">
</telerik:RadEditor>

You can see my test in the following video: http://screencast.com/t/aUw1ds3f.

I have also attached my test project.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
mohmedsadiq modan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
mohmedsadiq modan
Top achievements
Rank 1
Sam
Top achievements
Rank 1
Share this question
or