Configure Asp.net Telerik editor Dialog when EnableEmbededScript is OFF

8 posts, 0 answers
  1. mohmedsadiq modan
    mohmedsadiq modan avatar
    26 posts
    Member since:
    May 2010

    Posted 21 Sep 2012 Link to this post

    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

  2. Rumen
    Admin
    Rumen avatar
    14370 posts

    Posted 25 Sep 2012 Link to this post

    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.
  3. mohmedsadiq modan
    mohmedsadiq modan avatar
    26 posts
    Member since:
    May 2010

    Posted 27 Sep 2012 Link to this post

    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.
  4. Rumen
    Admin
    Rumen avatar
    14370 posts

    Posted 27 Sep 2012 Link to this post

    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.
  5. Sam
    Sam avatar
    1 posts
    Member since:
    Nov 2010

    Posted 27 Sep 2012 Link to this post

    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
  6. Rumen
    Admin
    Rumen avatar
    14370 posts

    Posted 27 Sep 2012 Link to this post

    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.
  7. mohmedsadiq modan
    mohmedsadiq modan avatar
    26 posts
    Member since:
    May 2010

    Posted 28 Sep 2012 Link to this post

    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.
  8. Rumen
    Admin
    Rumen avatar
    14370 posts

    Posted 29 Sep 2012 Link to this post

    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.
Back to Top