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

IE7 editor inside a rad dialog

1 Answer 18 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kalyani
Top achievements
Rank 1
Kalyani asked on 26 Jul 2013, 04:44 PM
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";
      }
     }


1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 30 Jul 2013, 03:57 PM
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.
Tags
Editor
Asked by
Kalyani
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or