Rendering problem of Radeditor

2 posts, 0 answers
  1. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 27 Feb 2013 Link to this post

    Hi,
             Rendering problem of radeditor due to Ajax. I have tried all your given solutions. it doesnot works. i need some solutions as css class for the editor, to work in all the browers withot any rendering.






    Thanks
  2. Rumen
    Admin
    Rumen avatar
    14080 posts

    Posted 27 Feb 2013 Link to this post

    Hello,

    I answered your other forum post on the subject. Here is my answer for your reference:

    You did not provide the requested code sample and I performed a quick test with the following code:
    Default.aspx:
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Button Text="Load Editor Control" OnClick="LoadEditorControl_Click" runat="server" />
            <asp:PlaceHolder ID="EditorPlaceholder1" runat="server"></asp:PlaceHolder>
        </ContentTemplate>
    </asp:UpdatePanel>

    Default.aspx.cs
    protected void LoadEditorControl_Click(object sender, EventArgs e)
    {
        Control control1 = Page.LoadControl("~/EditorControl.ascx");
        EditorPlaceholder1.Controls.Add(control1);
    }

    and EditorControl.ascx
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditorControl.ascx.cs" Inherits="EditorControl" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <telerik:RadEditor runat="server" ID="RadEditor2">
    </telerik:RadEditor>

    Using the above configuration I was unable to reproduce the problem as shown in the following video:
    http://screencast.com/t/4Fc53ubz.
    What you can try is to put a hidden editor on the aspx page, which will load the skin files and fix the problem at your end, e.g.

    <div style="display:none;">
      <telerik:RadEditor runat="server" ID="HiddenRadEditor"></telerik:RadEditor>
    </div>

    All the best,
    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