Editor is not working if the page is fetched using jQuery Load function instead of Microsoft Ajax, Telerik Ajax or Browser request.

2 posts, 0 answers
  1. Prabhudatta
    Prabhudatta avatar
    1 posts
    Member since:
    Aug 2011

    Posted 09 Aug 2011 Link to this post


    In our product we are using jQuery ajax to load the aspx pages asynchronously.  When we try to load the page which contains Rad Editor thinks are not going correct as it need to be.

    Let me explain in detail what exactly is happening. We have a Editor.aspx page which contain Rad Editor our goal is to call this page using jQuery Ajax and by using Editor Client-side API we will read html contain from Editor and populate html contain to Editor. When we load the Editor.aspx page Editor render properly in UI but none of the functionality is working at all.

    Here I am able to simulate the scenario using an sample ASP.Net 4.0 Web Project

    In Editor.aspx page

    <form id="form1" runat="server">
            <telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
            <telerik:RadEditor runat = "server" ></telerik:RadEditor>

    The page from where we are calling the Editor.aspx page

    <script type="text/javascript">
            $(document).ready(function () {
                $("#success").load("Editor.aspx", function (response, status, xhr) {
                    if (status == "error") {
                        var msg = "Sorry but there was an error: ";
                        $("#error").html(msg + xhr.status + " " + xhr.statusText);

    due to Attachment restriction i am unable to provide the sample project. If the sample project needed, please let me know so i can able to send it by mail.

    Waiting for your replay :) thanks,


  2. Rumen
    Rumen avatar
    14028 posts

    Posted 12 Aug 2011 Link to this post

    Hello Prabhudatta,

    Could you please try to fix the problem by executing the onParentNodeChanged() client-side method of the RadEditor object after it is shown?

    A very similar problem is discussed in the following PITS item: http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/4889, e.g.

    FIX RadEditor is unusable when inside a control containter of RadWindow

    If you use RadWindow to display a RadEditor instance the buttons in RadEditor do not work (rendering it unusable). The issue only arises when RadWindow is used as a control containter (i.e. the RadEditor is within the <ContentTemplate> of RadWindow).

    To fix the problem you must execute the onParentNodeChanged() method of the RadEditor object after it is shown.

    Here is the sample project: http://www.telerik.com/ClientsFiles/291003_UnusableEditorFIX.zip

    My suggestion is to fire the onParentNodeChanged() method when loading the dialog.

    If you still experience the problem, please, isolate it in a simple working project, open a support ticket and send it for examination.

    All the best,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top