IE7 editor inside a rad dialog

2 posts, 0 answers
  1. Kalyani
    Kalyani avatar
    20 posts
    Member since:
    Jul 2011

    Posted 26 Jul 2013 Link to this post

    Hello,

    I have a rad editor inside a rad dialog.  In IE7 , when the dialog loads for the first time the toolbar is not showing properly.  This only happens in IE7 and that too only when I load it for the first time.  The second time around everything works great.  I am attaching the screen shot of the page.  

    Can you please let me know what the issue might be -  Thank you

    The html code in the page

    <td align="left"><strong>Article</strong> <br />
             <tlrk:RadEditor ID="D0_RadArticle" runat ="server" Width="690px" Height="420px"      ToolsFile="~/XML/Editor/HelpEditor.xml"
               StripAbsoluteImagesPaths="true"/>
     </td>


    Javascript in the page -
    function Dialog_OnOpen(dialogId)
         {
          if (dialogId == "<%=Dialog1.ClientID%>")
          {
           var editor = $find("<%=D0_RadArticle.ClientID%>");
           if (OI_b.IE)
            editor.setSize("690", "420");
           if (!OI_b.Fx)
           editor.onParentNodeChanged();
           $get("ctl00_Dialogs_Dialog1_C").style.overflow = "hidden";
          }
         }


  2. Ianko
    Admin
    Ianko avatar
    1896 posts

    Posted 30 Jul 2013 Link to this post

    Hello Kalyani,

    This issue is mentioned in this help article. In the provided JavaScript code I can confirm that the fix is placed in the second if statement, but not in the first one.

    Currently a could suggest you to modify the implementation, so that the onParentNodeChanged() is invoked in all cases. 

    If this does not resolve the problem, could you get back to me with more detailed information about the dialog's setup? Also, it would be very appreciated if you could provide me with a sample project which isolates the problematic field.  

    Regards,
    Ianko
    Telerik
    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 the blog feed now.
Back to Top